|
135 | 135 | * |
136 | 136 | * |
137 | 137 | * For information on how the compiler works, see the |
138 | | - * {@link guide/dev_guide.compiler Angular HTML Compiler} section of the Developer Guide. |
| 138 | + * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide. |
139 | 139 | */ |
140 | 140 |
|
141 | 141 |
|
|
145 | 145 | * @function |
146 | 146 | * |
147 | 147 | * @description |
| 148 | + */ |
| 149 | + |
| 150 | +/** |
| 151 | + * @ngdoc function |
| 152 | + * @name angular.module.ng.$compileProvider#directive |
| 153 | + * @methodOf angular.module.ng.$compileProvider |
| 154 | + * @function |
| 155 | + * |
| 156 | + * @description |
| 157 | + * Register a new directive with compiler |
148 | 158 | * |
| 159 | + * @param {string} name name of the directive. |
| 160 | + * @param {function} directiveFactory An injectable directive factory function. |
| 161 | + * @returns {angular.module.ng.$compileProvider} Self for chaining. |
149 | 162 | */ |
150 | 163 | $CompileProvider.$inject = ['$provide']; |
151 | 164 | function $CompileProvider($provide) { |
@@ -1045,6 +1058,43 @@ function directiveNormalize(name) { |
1045 | 1058 | return camelCase(name.replace(PREFIX_REGEXP, '')); |
1046 | 1059 | } |
1047 | 1060 |
|
| 1061 | +/** |
| 1062 | + * @ngdoc object |
| 1063 | + * @name angular.module.ng.$compile.directive.Attributes |
| 1064 | + * @description |
| 1065 | + * |
| 1066 | + * A shared object between directive compile / linking functions which contains normalized DOM element |
| 1067 | + * attributes. The the values reflect current binding state `{{ }}`. The normalization is needed |
| 1068 | + * since all of these are treated as equivalent in Angular: |
| 1069 | + * |
| 1070 | + * <span ng:bind="a" ng-bind="a" data-ng-bind="a" x-ng-bind="a"> |
| 1071 | + */ |
| 1072 | + |
| 1073 | +/** |
| 1074 | + * @ngdoc property |
| 1075 | + * @name angular.module.ng.$compile.directive.Attributes#$attr |
| 1076 | + * @propertyOf angular.module.ng.$compile.directive.Attributes |
| 1077 | + * @returns {object} A map of DOM element attribute names to the normalized name. This is |
| 1078 | + * needed to do reverse lookup from normalized name back to actual name. |
| 1079 | + */ |
| 1080 | + |
| 1081 | + |
| 1082 | +/** |
| 1083 | + * @ngdoc function |
| 1084 | + * @name angular.module.ng.$compile.directive.Attributes#$set |
| 1085 | + * @methodOf angular.module.ng.$compile.directive.Attributes |
| 1086 | + * @function |
| 1087 | + * |
| 1088 | + * @description |
| 1089 | + * Set DOM element attribute value. |
| 1090 | + * |
| 1091 | + * |
| 1092 | + * @param {string} name Normalized element attribute name of the property to modify. The name is |
| 1093 | + * revers translated using the {@link angular.module.ng.$compile.directive.Attributes#$attr $attr} |
| 1094 | + * property to the original name. |
| 1095 | + * @param {string} value Value to set the attribute to. |
| 1096 | + */ |
| 1097 | + |
1048 | 1098 |
|
1049 | 1099 |
|
1050 | 1100 | /** |
|
0 commit comments