Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

how to use javascript variables in blade view

Jittery Jay answered on February 24, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • laravel variable in javascript
  • laravel 8 include javascript in blade
  • get laravel variable in js
  • create variable in laravel blade
  • use js variable in blade route
  • laravel load view in variable
  • blade set variable
  • use variable from laravel blade in js
  • Get Vars From Controller in blade
  • laravel 5 use env variable in blade
  • php value to javascript variable laravel blade
  • laravel get view variables
  • how to use laravel variable inside js
  • laravel blade php variable concatenate javascript variable
  • Sending Variable From Blade Template to Route and Then In Controller Laravel
  • pass variable to blade laravel
  • displaying variables in blade laravel
  • declare variable in view for loop laravel
  • larevel blade data received in javascript
  • declare variable in view for loop laravel

  • how to use javascript variables in blade view

    0

       const url = '{{ route("api.categories.filters", ["slug" => ":category"]) }}';

    const fetchUrl = url.replace(':category', category); 

    Popularity 1/10 Helpfulness 1/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 24 2023
    Jittery Jay
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.