Ad

How To Use AngularJs With Laravel 5.2 As Laravel Blading Template And Angular Directive Have Same Tags {{}}

I have read many blogs relating to this and have tried for almost a week but unable to use the both together. Also let me tell you I have also tried using angular Js with @{{}} and also by changing the tags of angular through interpolate on module initialization.So please suggest any other method

Ad

Answer

In your blade code simply add @ to Angular braces.

Example:

@{{name}}

This tells blade not to parse or treat the braces as blade code but to ignore the braces and simply output

{{name}}

Read Blade section in Laravel documentation for more info.

Ad
source: stackoverflow.com
Ad