Friday, March 17, 2017

Blade templating with angular2 templating?

I have problem because im using angular with laravel.I added this in routes.php

Blade::setContentTags('<%', '%>');        // for variables and all things Blade
Blade::setEscapedContentTags('<%%', '%%>');   // for escaped data

But its not working because im getting an error when i display data from angular. Any suggestion how can i fix this?

For example if i say:

test it works but if i say where response is from angular i get an error because laravel thinks that is his.



via uzhas

Advertisement