aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive
diff options
context:
space:
mode:
authorrodyhaddad2013-09-08 17:22:54 -0400
committerPete Bacon Darwin2013-09-11 13:28:17 +0100
commitd8987c170f98650baecae66ccc272bdbca352f64 (patch)
tree37b786d4356ae515efbeb2320eff14ac55f6bb54 /src/ng/directive
parent15674406654733f24af63c65c60ce13be64fe0db (diff)
downloadangular.js-d8987c170f98650baecae66ccc272bdbca352f64.tar.bz2
docs(ng.directives): add correct @restrict for all ng directives
Diffstat (limited to 'src/ng/directive')
-rw-r--r--src/ng/directive/ngBind.js1
-rw-r--r--src/ng/directive/ngClass.js3
-rw-r--r--src/ng/directive/ngCloak.js1
-rw-r--r--src/ng/directive/ngInit.js1
-rw-r--r--src/ng/directive/ngNonBindable.js1
-rw-r--r--src/ng/directive/ngStyle.js1
-rw-r--r--src/ng/directive/ngTransclude.js1
-rw-r--r--src/ng/directive/script.js2
8 files changed, 10 insertions, 1 deletions
diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js
index 13394f20..de374574 100644
--- a/src/ng/directive/ngBind.js
+++ b/src/ng/directive/ngBind.js
@@ -3,6 +3,7 @@
/**
* @ngdoc directive
* @name ng.directive:ngBind
+ * @restrict AC
*
* @description
* The `ngBind` attribute tells Angular to replace the text content of the specified HTML element
diff --git a/src/ng/directive/ngClass.js b/src/ng/directive/ngClass.js
index 9edb0a3e..7812e7d2 100644
--- a/src/ng/directive/ngClass.js
+++ b/src/ng/directive/ngClass.js
@@ -72,6 +72,7 @@ function classDirective(name, selector) {
/**
* @ngdoc directive
* @name ng.directive:ngClass
+ * @restrict AC
*
* @description
* The `ngClass` allows you to set CSS classes on HTML an element, dynamically, by databinding
@@ -210,6 +211,7 @@ var ngClassDirective = classDirective('', true);
/**
* @ngdoc directive
* @name ng.directive:ngClassOdd
+ * @restrict AC
*
* @description
* The `ngClassOdd` and `ngClassEven` directives work exactly as
@@ -257,6 +259,7 @@ var ngClassOddDirective = classDirective('Odd', 0);
/**
* @ngdoc directive
* @name ng.directive:ngClassEven
+ * @restrict AC
*
* @description
* The `ngClassOdd` and `ngClassEven` directives work exactly as
diff --git a/src/ng/directive/ngCloak.js b/src/ng/directive/ngCloak.js
index 6d4a9dc2..5c2bc21e 100644
--- a/src/ng/directive/ngCloak.js
+++ b/src/ng/directive/ngCloak.js
@@ -3,6 +3,7 @@
/**
* @ngdoc directive
* @name ng.directive:ngCloak
+ * @restrict AC
*
* @description
* The `ngCloak` directive is used to prevent the Angular html template from being briefly
diff --git a/src/ng/directive/ngInit.js b/src/ng/directive/ngInit.js
index d157f396..2e2177ef 100644
--- a/src/ng/directive/ngInit.js
+++ b/src/ng/directive/ngInit.js
@@ -3,6 +3,7 @@
/**
* @ngdoc directive
* @name ng.directive:ngInit
+ * @restrict AC
*
* @description
* The `ngInit` directive specifies initialization tasks to be executed
diff --git a/src/ng/directive/ngNonBindable.js b/src/ng/directive/ngNonBindable.js
index 6622677a..de2b4bee 100644
--- a/src/ng/directive/ngNonBindable.js
+++ b/src/ng/directive/ngNonBindable.js
@@ -3,6 +3,7 @@
/**
* @ngdoc directive
* @name ng.directive:ngNonBindable
+ * @restrict AC
* @priority 1000
*
* @description
diff --git a/src/ng/directive/ngStyle.js b/src/ng/directive/ngStyle.js
index a1c2b699..b9fbe216 100644
--- a/src/ng/directive/ngStyle.js
+++ b/src/ng/directive/ngStyle.js
@@ -3,6 +3,7 @@
/**
* @ngdoc directive
* @name ng.directive:ngStyle
+ * @restrict AC
*
* @description
* The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.
diff --git a/src/ng/directive/ngTransclude.js b/src/ng/directive/ngTransclude.js
index 71d0635a..d7c9cd44 100644
--- a/src/ng/directive/ngTransclude.js
+++ b/src/ng/directive/ngTransclude.js
@@ -3,6 +3,7 @@
/**
* @ngdoc directive
* @name ng.directive:ngTransclude
+ * @restrict AC
*
* @description
* Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.
diff --git a/src/ng/directive/script.js b/src/ng/directive/script.js
index 16bd7d15..db94a6c7 100644
--- a/src/ng/directive/script.js
+++ b/src/ng/directive/script.js
@@ -3,12 +3,12 @@
/**
* @ngdoc directive
* @name ng.directive:script
+ * @restrict E
*
* @description
* Load content of a script tag, with type `text/ng-template`, into `$templateCache`, so that the
* template can be used by `ngInclude`, `ngView` or directive templates.
*
- * @restrict E
* @param {'text/ng-template'} type must be set to `'text/ng-template'`
*
* @example