ngNonBindable (directive)

Improve this Doc View Source ngNonBindable

  1. directive in module ng

The ngNonBindable 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.

Directive Info

  • This directive executes at priority level 1000.

Usage

  • as attribute:
    <ANY>
    ...
    </ANY>
  • as CSS class:
    <ANY class=""> ... </ANY>

In this example there are two locations where a simple interpolation binding ({{}}) is present, but the one wrapped in ngNonBindable is left alone.

© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.4.14/docs/api/ng/directive/ngNonBindable

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部