Last Updated: February 25, 2016
·
1.821K
· beshrkayali

AngularJS and Django Interpolators

Django and AngularJS use the double curly brackets (these {{ }}</code>) in their templating language as .

Fortunately, there's an easy fix for that. If you're using Angular 1.0 or later you can use the $interpolateProvider APIs to modify these symbols:

angular.module(function($interpolateProvider) {
   $interpolateProvider.startSymbol('{[');
   $interpolateProvider.endSymbol(']}');
});

<small>I found out that using this form "{[" and "]}" is better than "{[{" and "}]}". It's nothing technical, just a personal preference.</small>