aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ng/compile.js52
-rw-r--r--src/ng/filter/filters.js2
-rw-r--r--src/ng/parse.js2
-rw-r--r--src/ng/rootScope.js2
4 files changed, 54 insertions, 4 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.
+ */
+
/**
diff --git a/src/ng/filter/filters.js b/src/ng/filter/filters.js
index 841a0eaa..8852299a 100644
--- a/src/ng/filter/filters.js
+++ b/src/ng/filter/filters.js
@@ -270,7 +270,7 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+
* * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-1200)
*
* `format` string can also be one of the following predefined
- * {@link guide/dev_guide.i18n localizable formats}:
+ * {@link guide/i18n localizable formats}:
*
* * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale
* (e.g. Sep 3, 2010 12:05:08 pm)
diff --git a/src/ng/parse.js b/src/ng/parse.js
index 55b0c67c..fd1629f9 100644
--- a/src/ng/parse.js
+++ b/src/ng/parse.js
@@ -814,7 +814,7 @@ function getterFn(path, csp) {
*
* @description
*
- * Converts Angular {@link guid/expression expression} into a function.
+ * Converts Angular {@link guide/expression expression} into a function.
*
* <pre>
* var getter = $parse('user.name');
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js
index 449a30f6..d1c62317 100644
--- a/src/ng/rootScope.js
+++ b/src/ng/rootScope.js
@@ -165,7 +165,7 @@ function $RootScopeProvider(){
* the scope and its child scopes to be permanently detached from the parent and thus stop
* participating in model change detection and listener notification by invoking.
*
- * @params {boolean} isolate if true then the scoped does not prototypically inherit from the
+ * @param {boolean} isolate if true then the scoped does not prototypically inherit from the
* parent scope. The scope is isolated, as it can not se parent scope properties.
* When creating widgets it is useful for the widget to not accidently read parent
* state.