From c23da825e37e079a0d86205780759e0a02e5a945 Mon Sep 17 00:00:00 2001 From: Chia-liang Kao Date: Sat, 18 Jan 2014 23:01:20 +0800 Subject: [PATCH] docs(ngInit): note precedence when used with filters Closes #3869 --- src/ng/directive/ngInit.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ng/directive/ngInit.js b/src/ng/directive/ngInit.js index b09fad2aa73e..9668ddc565ed 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. * + *
+ * *Caveat*: If you have assignment in `ngInit` along with {@link api/ng.$filter `$filter`}, make + * sure you have parenthesis for correct precedence: + *
+ *   
+ * 
+ *
* * @priority 450 *