[英]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. 我希望能够渲染一些包含dom组件的预先格式化的html,但我不认为无论如何都要阻止编译器处理它。
For example, I want to display: 例如,我想显示:
<pre>
<some-component [color]="color"></some-component>
</pre>
Add ngNonBindable
添加ngNonBindable
<pre ngNonBindable>
<some-component [color]="color"></some-component>
</pre>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.