Meliborn Meliborn - 1 year ago 173
AngularJS Question

AngularJS-Twig conflict with double curly braces

As you know, both angular and twig has common control construction - double curly braces. How can I change default value of Angular?

I know that I can do it in Twig, but in some projects I can't, only JS.

Answer Source

You can change the start and end interpolation tags using interpolateProvider service. One convenient place for this is at the module initialization time.

angular.module('myApp', []).config(function($interpolateProvider){

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download