Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 190c4f9

Browse files
campersaucaitp
authored andcommitted
docs(ngInit): ng-init is an attribute/class directive, not an element directive
As discussed in comments on 42ec95e#commitcomment-5109829, ngInit is not an element directive, so @clkao's example should reflect this. Closes #5878
1 parent 42ec95e commit 190c4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ng/directive/ngInit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* **Note**: If you have assignment in `ngInit` along with {@link api/ng.$filter `$filter`}, make
2020
* sure you have parenthesis for correct precedence:
2121
* <pre class="prettyprint">
22-
* <ng-init="test1 = (data | orderBy:'name')">
22+
* <div ng-init="test1 = (data | orderBy:'name')"></div>
2323
* </pre>
2424
* </div>
2525
*

0 commit comments

Comments
 (0)