diff options
Diffstat (limited to 'docs/content')
| -rw-r--r-- | docs/content/guide/directive.ngdoc | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index ea7c73e6..f72f2bb5 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -27,28 +27,28 @@ attribute only.)    <!-- directive: my-dir exp -->  </pre> -Directives can be invoked in many different ways, but are equivalent in the end result as shown in -the following example. +The following demonstrates the various ways a Directive (ngBind in this case) can be referenced from within a template.  <doc:example>    <doc:source >     <script>       function Ctrl1($scope) { -       $scope.name = 'angular'; +       $scope.name = 'Max Karl Ernst Ludwig Planck (April 23, 1858 – October 4, 1947)';       }     </script>     <div ng-controller="Ctrl1">       Hello <input ng-model='name'> <hr/> +     <span ng-bind="name"> <span ng-bind="name"></span> <br/>       <span ng:bind="name"> <span ng:bind="name"></span> <br/>       <span ng_bind="name"> <span ng_bind="name"></span> <br/> -     <span ng-bind="name"> <span ng-bind="name"></span> <br/>       <span data-ng-bind="name"> <span data-ng-bind="name"></span> <br/>       <span x-ng-bind="name"> <span x-ng-bind="name"></span> <br/>     </div>    </doc:source>    <doc:scenario>      it('should show off bindings', function() { -      expect(element('div[ng-controller="Ctrl1"] span[ng-bind]').text()).toBe('angular'); +      expect(element('div[ng-controller="Ctrl1"] span[ng-bind]').text()) +        .toBe('Max Karl Ernst Ludwig Planck (April 23, 1858 – October 4, 1947)');      });    </doc:scenario>  </doc:example> | 
