How to solve the conflict between AngularJS and Django?

4

What is the most efficient way to solve the conflict problem between Django and AngularJS when using {{ }} in templates?

    
asked by anonymous 19.03.2015 / 02:41

1 answer

4

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

    
19.03.2015 / 04:05