EVOLUTION-MANAGER
Edit File: ngBind.html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/ng/directive/ngBind.js?message=docs(ngBind)%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/ngBind.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">ngBind</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>ngBind</code> attribute tells Angular to replace the text content of the specified HTML element with the value of a given expression, and to update the text content when the value of that expression changes.</p> <p>Typically, you don't use <code>ngBind</code> directly, but instead you use the double curly markup like <code>{{ expression }}</code> which is similar but less verbose.</p> <p>It is preferable to use <code>ngBind</code> instead of <code>{{ expression }}</code> if a template is momentarily displayed by the browser in its raw state before Angular compiles it. Since <code>ngBind</code> is an element attribute, it makes the bindings invisible to the user while the page is loading.</p> <p>An alternative solution to this problem would be using the <a href="api/ng/directive/ngCloak">ngCloak</a> directive.</p> </div> <div> <h2>Directive Info</h2> <ul> <li>This directive executes at priority level 0.</li> </ul> <h2 id="usage">Usage</h2> <div class="usage"> <ul> <li>as attribute: <pre><code><ANY ng-bind=""> ... </ANY></code></pre> </li> <li>as CSS class: <pre><code><ANY class="ng-bind: ;"> ... </ANY></code></pre> </li> </div> <section class="api-section"> <h3>Arguments</h3> <table class="variables-matrix input-arguments"> <thead> <tr> <th>Param</th> <th>Type</th> <th>Details</th> </tr> </thead> <tbody> <tr> <td> ngBind </td> <td> <a href="" class="label type-hint type-hint-expression">expression</a> </td> <td> <p><a href="guide/expression">Expression</a> to evaluate.</p> </td> </tr> </tbody> </table> </section> <h2 id="example">Example</h2><p>Enter a name in the Live Preview text box; the greeting below the text box changes instantly. <div> <a ng-click="openPlunkr('examples/example-example59')" class="btn pull-right"> <i class="glyphicon glyphicon-edit"> </i> Edit in Plunker</a> <div class="runnable-example" path="examples/example-example59" module="bindExample"> <div class="runnable-example-file" name="index.html" language="html" type="html"> <pre><code><script> angular.module('bindExample', []) .controller('ExampleController', ['$scope', function($scope) { $scope.name = 'Whirled'; }]); </script> <div ng-controller="ExampleController"> Enter name: <input type="text" ng-model="name"><br> Hello <span ng-bind="name"></span>! </div></code></pre> </div> <div class="runnable-example-file" name="protractor.js" type="protractor" language="js"> <pre><code>it('should check ng-bind', function() { var nameInput = element(by.model('name')); expect(element(by.binding('name')).getText()).toBe('Whirled'); nameInput.clear(); nameInput.sendKeys('world'); expect(element(by.binding('name')).getText()).toBe('world'); });</code></pre> </div> <iframe class="runnable-example-frame" src="examples/example-example59/index.html" name="example-example59"></iframe> </div> </div> </p> </div>