I want to show some example Angular code and HTML in my angular page, but whatever I do, Angular tries to parse it.
I've tried in <code>
, in <pre>
and even this:
<div class="name">{{ name }} </div>
but even then it tries to bind to 'name'.
I don't want to do it via any binding, I just want to type the HTML in the components HTML page.
Maybe a better example: when I paste this text in the HTML, I still get an input element, I just want to show the HTML (from input to box.value).
<pre><code><input #box (keyup.enter)="onEnter(box.value)"></code></pre>