search

Home  >  Q&A  >  body text

angular.js - How to solve the syntax conflict between html syntax and artTemplate template syntax in AngularJS?

The syntax conflicts between artTemplate and AngularJS {{ }}, and the template reports an error.

I don’t know if you have any ideas?

Do I need to change the Compiler of artTemplate?

漂亮男人漂亮男人2832 days ago801

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