2

I would like to know is it possible to change {{}} symbol in AngularJS,as other technology which I am using use same expression syntax to represent data on View.

2
  • For what it's worth, you can almost completely forego the usage of {{}} in angular with ng-bind. Commented May 19, 2015 at 15:08
  • It already has a response: stackoverflow.com/questions/13671701/… Commented May 19, 2015 at 15:09

2 Answers 2

3

Yes you can :

You can use $interpolateProvider to change start / end symbols used for AngularJS expressions:

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

Found here : Angular JS custom delimiter

Sign up to request clarification or add additional context in comments.

Comments

2

See $interpolateProvider : https://docs.angularjs.org/api/ng/provider/$interpolateProvider

$interpolateProvider.startSymbol, $interpolateProvider.endSymbol

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.