laracasts / PHP-Vars-To-Js-Transformer

Transform PHP data to JavaScript.
https://packagist.org/packages/laracasts/utilities
MIT License
2.21k stars 219 forks source link

Set Dynamic Bind View #115

Open isatria opened 6 years ago

isatria commented 6 years ago

Can i set dynamic value of bind_js_vars_to_this_view

jalowin commented 3 years ago

Hello,

You can pass to the view for render or 'blog.', in my case I used * and all its ok

best regards and happy coding

jalowin commented 3 years ago

Sorry for my answer of yesterday

The best solutions is, create a views for example varjs.blade.php empty, and include in your base, before of close body and in bing_js_vars_to_this_view put her name varjs and if this views is in a directory name_directory.varjs

Best regards and happy coding