This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
*
7
7
* @description
8
8
* The `ngShow` directive shows or hides the given HTML element based on the expression
9
- * provided to the ngShow attribute. The element is shown or hidden by removing or adding
10
- * the `ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined
9
+ * provided to the ` ngShow` attribute. The element is shown or hidden by removing or adding
10
+ * the `. ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined
11
11
* in AngularJS and sets the display style to none (using an !important flag).
12
12
* For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).
13
13
*
19
19
* <div ng-show="myValue" class="ng-hide"></div>
20
20
* ```
21
21
*
22
- * When the ngShow expression evaluates to a falsy value then the ng-hide CSS class is added to the class
23
- * attribute on the element causing it to become hidden. When truthy, the ng-hide CSS class is removed
22
+ * When the ` ngShow` expression evaluates to a falsy value then the `. ng-hide` CSS class is added to the class
23
+ * attribute on the element causing it to become hidden. When truthy, the `. ng-hide` CSS class is removed
24
24
* from the element causing the element not to appear hidden.
25
25
*
26
26
* ## Why is !important used?
27
27
*
28
- * You may be wondering why !important is used for the .ng-hide CSS class. This is because the `.ng-hide` selector
28
+ * You may be wondering why !important is used for the ` .ng-hide` CSS class. This is because the `.ng-hide` selector
29
29
* can be easily overridden by heavier selectors. For example, something as simple
30
30
* as changing the display style on a HTML list item would make hidden elements appear visible.
31
31
* This also becomes a bigger issue when dealing with CSS frameworks.
You can’t perform that action at this time.
0 commit comments