Home  >  Q&A  >  body text

angular.js - AngularJS 里 html中语法和 artTemplate 模板语法冲突 怎么破?

用了artTemplate 和 AngularJS {{ }} 语法 冲突了,模板报错。

不知道大家有什么方法?

需要改artTemplate的 Compiler吗?

漂亮男人漂亮男人2735 days ago743

reply all(3)I'll reply

  • 为情所困

    为情所困2017-05-15 16:55:27

    AngularJS{{}} can use ng-bind, and it will be better to use ng-bind

    reply
    0
  • PHP中文网

    PHP中文网2017-05-15 16:55:27

    Go to the $interpolateProvider documentation, the answer is there.

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-15 16:55:27

    art-template’s default native syntax is {{}}, but there are also non-native syntaxes, you can use <%%>, mainly by adding parameters when calling compilation.
    For details, please see the git of art-template:
    https://github.com/aui/arttemplate

    reply
    0
  • Cancelreply