0

Can't find anything about this so here goes.

Can I instruct angular not to process {{}} interpolations in a certain section (div) of my html?

I have a place where {{/}} exists like this in my html:

<pre>
    <code class="some">{{asd}}Something{{/}}</code>
</pre>

Here angular is always trying to interpret {{asd}} and {{/}} and it's causing all kinds of errors. I really want angular not to look at the whole pre. How can I do that?

mrahhal
  • 3,322
  • 1
  • 22
  • 41

1 Answers1

2

You should just escape curly braces

<pre>
    <code class="some" ng-non-bindable>{{asd}}Something{{/}}</code>
</pre>
Community
  • 1
  • 1
asdf_enel_hak
  • 7,474
  • 5
  • 42
  • 84