解决angular 和 twig 分隔符冲突

You can change the start and end interpolation tags usinginterpolateProviderservice. One convenient place for this is at the module initialization time.

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

http://docs.angularjs.org/api/ng.$interpolateProvider

http://stackoverflow.com/questions/13671701/angularjs-twig-conflict-with-double-curly-braces


附加一篇 angular.js 的文章 ‘AngularJS的五个超酷特性‘

你可能感兴趣的:(twig,anguler)