EVOLUTION-MANAGER
Edit File: ngNonBindable.html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/ng/directive/ngNonBindable.js?message=docs(ngNonBindable)%3A%20describe%20your%20change...#L3' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> <a href='https://github.com/angular/angular.js/tree/v1.3.9/src/ng/directive/ngNonBindable.js#L3' class='view-source pull-right btn btn-primary'> <i class="glyphicon glyphicon-zoom-in"> </i>View Source </a> <header class="api-profile-header"> <h1 class="api-profile-header-heading">ngNonBindable</h1> <ol class="api-profile-header-structure naked-list step-list"> <li> - directive in module <a href="api/ng">ng</a> </li> </ol> </header> <div class="api-profile-description"> <p>The <code>ngNonBindable</code> 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.</p> </div> <div> <h2>Directive Info</h2> <ul> <li>This directive executes at priority level 1000.</li> </ul> <h2 id="usage">Usage</h2> <div class="usage"> <ul> <li>as attribute: <pre><code><ANY> ... </ANY></code></pre> </li> <li>as CSS class: <pre><code><ANY class=""> ... </ANY></code></pre> </li> </div> <h2 id="example">Example</h2><p>In this example there are two locations where a simple interpolation binding (<code>{{}}</code>) is present, but the one wrapped in <code>ngNonBindable</code> is left alone.</p> <p> <div> <a ng-click="openPlunkr('examples/example-example86')" class="btn pull-right"> <i class="glyphicon glyphicon-edit"> </i> Edit in Plunker</a> <div class="runnable-example" path="examples/example-example86"> <div class="runnable-example-file" name="index.html" language="html" type="html"> <pre><code><div>Normal: {{1 + 2}}</div> <div ng-non-bindable>Ignored: {{1 + 2}}</div></code></pre> </div> <div class="runnable-example-file" name="protractor.js" type="protractor" language="js"> <pre><code>it('should check ng-non-bindable', function() { expect(element(by.binding('1 + 2')).getText()).toContain('3'); expect(element.all(by.css('div')).last().getText()).toMatch(/1 \+ 2/); });</code></pre> </div> <iframe class="runnable-example-frame" src="examples/example-example86/index.html" name="example-example86"></iframe> </div> </div> </p> </div>