Sunday, March 22, 2015

use angular js in Symfony2

just need add the code below and then will use __  __to instead of {{}}

angular.module('demo', [])
.config(['$interpolateProvider', function($interpolateProvider) {
$interpolateProvider.startSymbol('__');
$interpolateProvider.endSymbol('__');
}]);


add js, css, images on web/bundles/bundleName folder

php app/console assets:install --symlink

1 comment:

أنس said...

hi
thanks for all the information in your website :)
if can you send to me a small example of using symfony2 and angularjs that well be a great help for me
thx :)