aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBastian Buchholz2014-01-18 22:49:57 +0100
committerCaitlin Potter2014-01-18 17:10:46 -0500
commit928d000db75e898ed860ecc07c0b0dce56e57533 (patch)
treee586fbe32a87fe2e9579c4998d3499e4172c139b /src
parent42ec95ebae716c81087684b55ed8fa8c13888abc (diff)
downloadangular.js-928d000db75e898ed860ecc07c0b0dce56e57533.tar.bz2
docs(ngInit): ng-init is an attribute/class directive, not an element directive
As discussed in comments on https://github.com/angular/angular.js/commit/42ec95ebae716c81087684b55ed8fa8c13888abc#commitcomment-5109829, ngInit is not an element directive, so @clkao's example should reflect this. Closes #5879
Diffstat (limited to 'src')
-rw-r--r--src/ng/directive/ngInit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/directive/ngInit.js b/src/ng/directive/ngInit.js
index 5d1f2f8a..6270a6d8 100644
--- a/src/ng/directive/ngInit.js
+++ b/src/ng/directive/ngInit.js
@@ -19,7 +19,7 @@
* **Note**: If you have assignment in `ngInit` along with {@link api/ng.$filter `$filter`}, make
* sure you have parenthesis for correct precedence:
* <pre class="prettyprint">
- * <ng-init="test1 = (data | orderBy:'name')">
+ * <div ng-init="test1 = (data | orderBy:'name')"></div>
* </pre>
* </div>
*