I'm trying to change angular opening and closing tags, (for python django jinja, if that matter) So for example, instead of this
<div ng-app="">
<span>name - type: <input type="text" ng-model="name" /></span>
<span>name - output: {{name}}</span>
</div>
I'll have this
<div ng-app="">
<span>name - type: <input type="text" ng-model="name" /></span>
<span>name - output: [[name]]</span>
</div>
And I've already tried this:
https://docs.angularjs.org/api/ng/provider/ $interpolateProvider
and it doesn't works at all. I also tried to replace each {{
in the angularjs.js
file, with [[
, (and }}
with ]]
) and it's still doesn't change anything.
And yes, I saw that it's not recommended to do something like this, (because of security reasons) but I still need that.
And i'm also need that in AngularJS, not in python. (to replace the symbols in angular, not in python)
How can I do that?
So it has to be something like this:
angular.module('YourAppName', [], function ($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.