AngularJS-Twig conflict with double curly braces

前端 未结 11 781
孤独总比滥情好
孤独总比滥情好 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:20

    You can create a function in twig to surround your angular directives, so like instead of going ...

    {{"angular"}}

    you go ...

    {{angular_parser("angular stuff here output curlies around it")}}

提交回复
热议问题