Angular Laravel variable conflict

Angular Laravel variable conflict

Since Laravel and Angular js are now the hot cake in market.Combine ,they can build application with great ease.

Laravel use blade templating engine for displaying views.But  both blade and angular  have default same way of displaying data. i.e ,both of them use  {{ variableName }} to show data.This arises conflict and make programmer headache.But there is flexibility to change the way for both blade as well as angluar to change the way of displaying data in view.

We can change the default way of showing data in laravel and angular.It is better to change in angular.

We can make this change in this way.

Now you can display angular variable as <% variableName %> and for blade it will be as previous.

Comments

comments