@@ -66,15 +66,9 @@ The **normalization** process is as follows:
66
66
1. Strip `x-` and `data-` from the front of the element/attributes.
67
67
2. Convert the `:`, `-`, or `_`-delimited name to `camelCase`.
68
68
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 :
70
70
71
71
<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>
78
72
<file name="index.html">
79
73
<div ng-controller="Controller">
80
74
Hello <input ng-model='name'> <hr/>
@@ -85,6 +79,12 @@ Here are some equivalent examples of elements that match `ngBind`:
85
79
<span x-ng-bind="name"></span> <br/>
86
80
</div>
87
81
</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>
88
88
<file name="protractor.js" type="protractor">
89
89
it('should show off bindings', function() {
90
90
expect(element(by.css('div[ng-controller="Controller"] span[ng-bind]')).getText())
0 commit comments