ablerman
ablerman

Reputation: 1543

How do I prevent angular from compiling specific dom elements?

I'd like to be able to render some preformatted html including dom components, but I don't see anyway to prevent the compiler from processing it.

For example, I want to display:

<pre>
   <some-component [color]="color"></some-component>
</pre>

Upvotes: 1

Views: 176

Answers (1)

G&#252;nter Z&#246;chbauer
G&#252;nter Z&#246;chbauer

Reputation: 657248

Add ngNonBindable

<pre ngNonBindable>
  <some-component [color]="color"></some-component>
</pre>

Upvotes: 3

Related Questions