Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b64b9ea

Browse files
docs(guide/directive): clarify directive matching example
Closes #9311
1 parent 7fa6634 commit b64b9ea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/content/guide/directive.ngdoc

+7-7
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,9 @@ The **normalization** process is as follows:
6666
1. Strip `x-` and `data-` from the front of the element/attributes.
6767
2. Convert the `:`, `-`, or `_`-delimited name to `camelCase`.
6868

69-
Here are some equivalent examples of elements that match `ngBind`:
69+
For example, the following forms are all equivalent and match the {@link ngBind} directive:
7070

7171
<example module="docsBindExample">
72-
<file name="script.js">
73-
angular.module('docsBindExample', [])
74-
.controller('Controller', ['$scope', function($scope) {
75-
$scope.name = 'Max Karl Ernst Ludwig Planck (April 23, 1858 – October 4, 1947)';
76-
}]);
77-
</file>
7872
<file name="index.html">
7973
<div ng-controller="Controller">
8074
Hello <input ng-model='name'> <hr/>
@@ -85,6 +79,12 @@ Here are some equivalent examples of elements that match `ngBind`:
8579
<span x-ng-bind="name"></span> <br/>
8680
</div>
8781
</file>
82+
<file name="script.js">
83+
angular.module('docsBindExample', [])
84+
.controller('Controller', ['$scope', function($scope) {
85+
$scope.name = 'Max Karl Ernst Ludwig Planck (April 23, 1858 – October 4, 1947)';
86+
}]);
87+
</file>
8888
<file name="protractor.js" type="protractor">
8989
it('should show off bindings', function() {
9090
expect(element(by.css('div[ng-controller="Controller"] span[ng-bind]')).getText())

0 commit comments

Comments
 (0)