Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e591ddc

Browse files
Foxandxsscaitp
authored andcommitted
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
1 parent cd0af8a commit e591ddc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ng/directive/ngShowHide.js

+10
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
*
5353
* Just remember to include the important flag so the CSS override will function.
5454
*
55+
* <div class="alert alert-warning">
56+
* **Note:** Here is a list of values that ngShow will consider as a falsy value (case insensitive):<br />
57+
* "f" / "0" / "false" / "no" / "n" / "[]"
58+
* </div>
59+
*
5560
* ## A note about animations with ngShow
5661
*
5762
* 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) {
200205
* </pre>
201206
*
202207
* Just remember to include the important flag so the CSS override will function.
208+
*
209+
* <div class="alert alert-warning">
210+
* **Note:** Here is a list of values that ngHide will consider as a falsy value (case insensitive):<br />
211+
* "f" / "0" / "false" / "no" / "n" / "[]"
212+
* </div>
203213
*
204214
* ## A note about animations with ngHide
205215
*

0 commit comments

Comments
 (0)