docs(ngInit): ng-init is an attribute/class directive, not an element directive

As discussed in comments on 42ec95ebae (commitcomment-5109829),
ngInit is not an element directive, so @clkao's example should reflect this.

Closes #5879
This commit is contained in:
Bastian Buchholz 2014-01-18 22:49:57 +01:00 committed by Caitlin Potter
parent 42ec95ebae
commit 928d000db7

View file

@ -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>
*