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>
Written by Beshr Kayali
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Angularjs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#