AngularJS-Twig conflict with double curly braces

前端 未结 11 828
孤独总比滥情好
孤独总比滥情好 2020-11-22 14:39

As you know, both angular and twig has common control construction - double curly braces. How can I change default value of Angular?

I know that I can do it in Twig,

11条回答
  •  鱼传尺愫
    2020-11-22 15:41

    According to this post you should be able to do it like this :

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

提交回复
热议问题