We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94da576 commit 5608113Copy full SHA for 5608113
src/ng/directive/ngInit.js
@@ -15,6 +15,13 @@
15
* should use {@link guide/controller controllers} rather than `ngInit`
16
* to initialize values on a scope.
17
* </div>
18
+ * <div class="alert alert-warning">
19
+ * **Note**: If you have assignment in `ngInit` along with {@link api/ng.$filter `$filter`}, make
20
+ * sure you have parenthesis for correct precedence:
21
+ * <pre class="prettyprint">
22
+ * <ng-init="test1 = (data | orderBy:'name')">
23
+ * </pre>
24
+ * </div>
25
*
26
* @priority 450
27
0 commit comments