From 001a1262e11704e4aa2f4c6a714d7ec38142f827 Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Mon, 13 Jan 2014 14:19:37 +0100 Subject: [PATCH] docs(ngHideShow): Add a list of falsy values This PR closes #3436 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. I am not familiarized with this style of documentation so I hope it has the right style. --- src/ng/directive/ngShowHide.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ng/directive/ngShowHide.js b/src/ng/directive/ngShowHide.js index a38a7e7af253..e71103f1e620 100644 --- a/src/ng/directive/ngShowHide.js +++ b/src/ng/directive/ngShowHide.js @@ -52,6 +52,12 @@ * * Just remember to include the important flag so the CSS override will function. * + * ### Falsy values + * + * 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 +206,12 @@ var ngShowDirective = ['$animate', function($animate) { * * * Just remember to include the important flag so the CSS override will function. + * + * ### Falsy values + * + * 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 *