angular.js - AngularJS 里 html中语法和 artTemplate 模板语法冲突 怎么破?
漂亮男人
漂亮男人 2017-05-15 16:53:27
0
3
692

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

不知道大家有什么方法?

需要改artTemplate的 Compiler吗?

漂亮男人
漂亮男人

reply all(3)
为情所困

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

Ty80

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

漂亮男人

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!