diff options
| author | Misko Hevery | 2012-03-01 11:28:50 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2012-06-02 16:02:08 -0700 | 
| commit | f0be543614d5c2c3f492e1ed73ec964bd8a3d381 (patch) | |
| tree | 6f831d7fb45df34142d0cd6b9e0ad7d1d7c42d1d /src/ng/compile.js | |
| parent | a3a37c2063a9098539a59444b8e4a52959f3ee24 (diff) | |
| download | angular.js-f0be543614d5c2c3f492e1ed73ec964bd8a3d381.tar.bz2 | |
doc(ngdoc): clean up doc generation and add missing documentation links
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 52 | 
1 files changed, 51 insertions, 1 deletions
| diff --git a/src/ng/compile.js b/src/ng/compile.js index 8a29a6c6..5c7f1419 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -135,7 +135,7 @@   *   *   * For information on how the compiler works, see the - * {@link guide/dev_guide.compiler Angular HTML Compiler} section of the Developer Guide. + * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.   */ @@ -145,7 +145,20 @@   * @function   *   * @description + */ + +/** + * @ngdoc function + * @name angular.module.ng.$compileProvider#directive + * @methodOf angular.module.ng.$compileProvider + * @function + * + * @description + * Register a new directive with compiler   * + * @param {string} name name of the directive. + * @param {function} directiveFactory An injectable directive factory function. + * @returns {angular.module.ng.$compileProvider} Self for chaining.   */  $CompileProvider.$inject = ['$provide'];  function $CompileProvider($provide) { @@ -1045,6 +1058,43 @@ function directiveNormalize(name) {    return camelCase(name.replace(PREFIX_REGEXP, ''));  } +/** + * @ngdoc object + * @name angular.module.ng.$compile.directive.Attributes + * @description + * + * A shared object between directive compile / linking functions which contains normalized DOM element + * attributes. The the values reflect current binding state `{{ }}`. The normalization is needed + * since all of these are treated as equivalent in Angular: + * + *          <span ng:bind="a" ng-bind="a" data-ng-bind="a" x-ng-bind="a"> + */ + +/** + * @ngdoc property + * @name angular.module.ng.$compile.directive.Attributes#$attr + * @propertyOf angular.module.ng.$compile.directive.Attributes + * @returns {object} A map of DOM element attribute names to the normalized name. This is + *          needed to do reverse lookup from normalized name back to actual name. + */ + + +/** + * @ngdoc function + * @name angular.module.ng.$compile.directive.Attributes#$set + * @methodOf angular.module.ng.$compile.directive.Attributes + * @function + * + * @description + * Set DOM element attribute value. + * + * + * @param {string} name Normalized element attribute name of the property to modify. The name is + *          revers translated using the {@link angular.module.ng.$compile.directive.Attributes#$attr $attr} + *          property to the original name. + * @param {string} value Value to set the attribute to. + */ +  /** | 
