Sunday, April 15, 2018

Laravel does not evaluate the curly brackets when including .js file - development

Laravel does not evaluate the curly brackets when including .js file

I have a js file with the following script

alert("");

I used the .js file and include it in my blade view

<script type="text/javascript" src=></script>

It does not evaluate the route command.

But if I write the script in the blade view. It does evaluate the codes inside the curly brackets.



from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-does-not-evaluate-the-curly-brackets-when-including-js-file/
via Lzo Media

No comments:

Post a Comment