What is the most efficient way to solve the conflict problem between Django and AngularJS when using {{ }}
in templates?
What is the most efficient way to solve the conflict problem between Django and AngularJS when using {{ }}
in templates?
AngularJS offers tools for setting up markers via $interpolateProvider
. For example, if you want to use [[
and ]]
as markers, use the following snippet:
var myApp = angular.module('myApp', [], function($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
});
Snippet source: link