aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ng/directive/ngInit.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ng/directive/ngInit.js b/src/ng/directive/ngInit.js
index b09fad2a..5d1f2f8a 100644
--- a/src/ng/directive/ngInit.js
+++ b/src/ng/directive/ngInit.js
@@ -15,6 +15,13 @@
* should use {@link guide/controller controllers} rather than `ngInit`
* to initialize values on a scope.
* </div>
+ * <div class="alert alert-warning">
+ * **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')">
+ * </pre>
+ * </div>
*
* @priority 450
*