From 928d000db75e898ed860ecc07c0b0dce56e57533 Mon Sep 17 00:00:00 2001 From: Bastian Buchholz Date: Sat, 18 Jan 2014 22:49:57 +0100 Subject: 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 --- src/ng/directive/ngInit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: *
- *   
+ *   
*
* * -- cgit v1.2.3