aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng
diff options
context:
space:
mode:
authorFoxandxss2014-01-13 14:19:37 +0100
committerCaitlin Potter2014-01-15 17:59:01 -0500
commite591ddcb30a2cfd9dedcc7cfbd38db29725c4780 (patch)
tree9de0a7d25faf5d1217564214d6733a0cc87effb6 /src/ng
parentcd0af8a771d748ca183cab6f1a2a5f9584ec5693 (diff)
downloadangular.js-e591ddcb30a2cfd9dedcc7cfbd38db29725c4780.tar.bz2
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
Diffstat (limited to 'src/ng')
-rw-r--r--src/ng/directive/ngShowHide.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ng/directive/ngShowHide.js b/src/ng/directive/ngShowHide.js
index a38a7e7a..a3a9348d 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.
*
+ * <div class="alert alert-warning">
+ * **Note:** Here is a list of values that ngShow will consider as a falsy value (case insensitive):<br />
+ * "f" / "0" / "false" / "no" / "n" / "[]"
+ * </div>
+ *
* ## 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) {
* </pre>
*
* Just remember to include the important flag so the CSS override will function.
+ *
+ * <div class="alert alert-warning">
+ * **Note:** Here is a list of values that ngHide will consider as a falsy value (case insensitive):<br />
+ * "f" / "0" / "false" / "no" / "n" / "[]"
+ * </div>
*
* ## A note about animations with ngHide
*