19 lines
775 B
Plaintext
19 lines
775 B
Plaintext
|
|
p.location-badge.
|
|
exported from <a href="/angular2/directives.html">angular2/directives</a>
|
|
defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/directives/non_bindable.js#L21">angular2/src/directives/non_bindable.js (line 21)</a>
|
|
|
|
:markdown
|
|
The `NonBindable` directive tells Angular not to compile or bind the contents of the current
|
|
DOM element. This is useful if the element contains what appears to be Angular directives and
|
|
bindings but which should be ignored by Angular. This could be the case if you have a site that
|
|
displays snippets of code, for instance.
|
|
|
|
Example:
|
|
|
|
```
|
|
<div>Normal: {{1 + 2}}</div> // output "Normal: 3"
|
|
<div non-bindable>Ignored: {{1 + 2}}</div> // output "Ignored: {{1 + 2}}"
|
|
```
|
|
|