How do I use a custom delimiter for angular JS? I’d like to change from the {{ var }} syntax to [[ var ]].
Can somebody show me a complete example on how to implement this with Angular?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
$interpolateProviderto change start / end symbols used for AngularJS expressions:and then, in your template:
Here is the working jsFiddle: http://jsfiddle.net/Bvc62/3/
Check the documentation on the
$interpolateservice here: http://docs.angularjs.org/api/ng.$interpolate