From e591ddcb30a2cfd9dedcc7cfbd38db29725c4780 Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Mon, 13 Jan 2014 14:19:37 +0100 Subject: [PATCH] docs(ngShowHide): make a note of values considered to be falsy This issue has been a focus of problems for some users and we discussed it on the IRC that it should be at least documented. ~Amended the style to use bootstrap notes, I think overall it looks better and catches the eyes more easily. However there are no anchor links to these, if these are necessary they can be added later. Closes #3436 Closes #5762 --- src/ng/directive/ngShowHide.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ng/directive/ngShowHide.js b/src/ng/directive/ngShowHide.js index a38a7e7af253..a3a9348d08d4 100644 --- a/src/ng/directive/ngShowHide.js +++ b/src/ng/directive/ngShowHide.js @@ -52,6 +52,11 @@ * * Just remember to include the important flag so the CSS override will function. * + *
+ * **Note:** Here is a list of values that ngShow will consider as a falsy value (case insensitive):
+ * "f" / "0" / "false" / "no" / "n" / "[]" + *
+ * * ## A note about animations with ngShow * * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression @@ -200,6 +205,11 @@ var ngShowDirective = ['$animate', function($animate) { * * * Just remember to include the important flag so the CSS override will function. + * + *
+ * **Note:** Here is a list of values that ngHide will consider as a falsy value (case insensitive):
+ * "f" / "0" / "false" / "no" / "n" / "[]" + *
* * ## A note about animations with ngHide *