Closed thienvulai closed 9 years ago
Having the same issue here.
I figured it out. You need to edit your config/javascript.php file to tell it which view / partial to prepend your variables to. So, I ended up prepending them to my template blade file, and they're always included.
I had to use dot notation 'bind_js_vars_to_this_view' => 'include.footer' to get it to work :)
Hi everyone, im using laravel 5 and angularjs for my project. And i needed to pass value from laravel to angularjs. So i installed PHP-Vars-To-Js-Transformer. it was successful. But i cannot access to Javascript variable in View:
LanguageController.php:
my route:
my View create.blade.php:
javascript on create.blade.php:
But when i check console: there are three lines undefined. Is there anyone can help.