diff options
| author | Peter Bacon Darwin | 2014-02-07 20:34:04 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:40 +0000 |
| commit | 1192ae44f1d7f944719520f235e9f2ec895bdfd5 (patch) | |
| tree | 4d4f06b9448731e2b34ddd2441a0a13dccfc8301 /src/ng/directive/ngBind.js | |
| parent | f7c8bcb329eb77b153cd91fcf35c5874a6f9a4b3 (diff) | |
| download | angular.js-1192ae44f1d7f944719520f235e9f2ec895bdfd5.tar.bz2 | |
docs(bike-shed-migration): convert <doc:...> examples to <example>...
Diffstat (limited to 'src/ng/directive/ngBind.js')
| -rw-r--r-- | src/ng/directive/ngBind.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js index 82bbfab2..8e787a64 100644 --- a/src/ng/directive/ngBind.js +++ b/src/ng/directive/ngBind.js @@ -26,8 +26,8 @@ * * @example * Enter a name in the Live Preview text box; the greeting below the text box changes instantly. - <doc:example> - <doc:source> + <example> + <file name="index.html"> <script> function Ctrl($scope) { $scope.name = 'Whirled'; @@ -37,8 +37,8 @@ Enter name: <input type="text" ng-model="name"><br> Hello <span ng-bind="name"></span>! </div> - </doc:source> - <doc:protractor> + </file> + </file name="protractor.js" type="protractor"> it('should check ng-bind', function() { var exampleContainer = $('.doc-example-live'); var nameInput = element(by.model('name')); @@ -48,8 +48,8 @@ nameInput.sendKeys('world'); expect(exampleContainer.findElement(by.binding('name')).getText()).toBe('world'); }); - </doc:protractor> - </doc:example> + </file> + </example> */ var ngBindDirective = ngDirective(function(scope, element, attr) { element.addClass('ng-binding').data('$binding', attr.ngBind); @@ -80,8 +80,8 @@ var ngBindDirective = ngDirective(function(scope, element, attr) { * * @example * Try it here: enter text in text box and watch the greeting change. - <doc:example> - <doc:source> + <example> + <file name="index.html"> <script> function Ctrl($scope) { $scope.salutation = 'Hello'; @@ -93,8 +93,8 @@ var ngBindDirective = ngDirective(function(scope, element, attr) { Name: <input type="text" ng-model="name"><br> <pre ng-bind-template="{{salutation}} {{name}}!"></pre> </div> - </doc:source> - <doc:protractor> + </file> + </file name="protractor.js" type="protractor"> it('should check ng-bind', function() { var salutationElem = element(by.binding('salutation')); var salutationInput = element(by.model('salutation')); @@ -109,8 +109,8 @@ var ngBindDirective = ngDirective(function(scope, element, attr) { expect(salutationElem.getText()).toBe('Greetings user!'); }); - </doc:protractor> - </doc:example> + </file> + </example> */ var ngBindTemplateDirective = ['$interpolate', function($interpolate) { return function(scope, element, attr) { |
