1

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 &#123; and &#125; but these are just processed as if they were the ASCII curly braces.

Joulukuusi
  • 3,164
  • 6
  • 33
  • 53
Harrison Tran
  • 1,491
  • 3
  • 13
  • 25

1 Answers1

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,491
  • 3
  • 13
  • 25