From a65f6247965533a61b5a9afa167cdfb87ee770b5 Mon Sep 17 00:00:00 2001 From: Mickey Wu Date: Mon, 28 Apr 2014 15:38:11 -0700 Subject: [PATCH] docs(ngIf): add warning regarding falsy values --- src/ng/directive/ngIf.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ng/directive/ngIf.js b/src/ng/directive/ngIf.js index a31015b2c492..a5b053f77460 100644 --- a/src/ng/directive/ngIf.js +++ b/src/ng/directive/ngIf.js @@ -32,6 +32,11 @@ * Additionally, you can provide animations via the `ngAnimate` module to animate the `enter` * and `leave` effects. * + *
+ * **Note:** Here is a list of values that ngShow will consider as a falsy value (case insensitive):
+ * "f" / "0" / "false" / "no" / "n" / "[]" + *
+ * * @animations * enter - happens just after the ngIf contents change and a new DOM element is created and injected into the ngIf container * leave - happens just before the ngIf contents are removed from the DOM