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
This commit is contained in:
committed by
Caitlin Potter
parent
42ec95ebae
commit
928d000db7
@@ -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>
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user