I'm writing a web tutorial for AngularJS using AngularJS. I'm using bootstrap <pre></pre> tags for some of the example code. I'm just wondering how do you go about escaping the curly brace {{ }} symbols from being processed as an AngularJS expression. I've tried html codes { and } but these are just processed as if they were the ASCII curly braces.
Asked
Active
Viewed 1,280 times
1
skink
- 5,133
- 6
- 37
- 58
Harrison Tran
- 1,571
- 3
- 13
- 26
1 Answers
2
You can use <code></code> tags inside of <pre></pre> tags.
With this you can use <code ng-non-bindable>{{}}</code>.
Orginial Solution:
How do I escape curly braces for display on page when using AngularJS?
Community
- 1
- 1
Harrison Tran
- 1,571
- 3
- 13
- 26
tags inside of tags – Harrison Tran May 29 '16 at 07:44