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

Commit adb5ee2

Browse files
NateReddingtbosch
authored andcommitted
docs(ngHide): corrected logic in example
Closes #7436
1 parent 78954ff commit adb5ee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/directive/ngShowHide.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ var ngShowDirective = ['$animate', function($animate) {
173173
*
174174
* ```html
175175
* <!-- when $scope.myValue is truthy (element is hidden) -->
176-
* <div ng-hide="myValue"></div>
176+
* <div ng-hide="myValue" class="ng-hide"></div>
177177
*
178178
* <!-- when $scope.myValue is falsy (element is visible) -->
179-
* <div ng-hide="myValue" class="ng-hide"></div>
179+
* <div ng-hide="myValue"></div>
180180
* ```
181181
*
182182
* When the ngHide expression evaluates to true then the .ng-hide CSS class is added to the class attribute

0 commit comments

Comments
 (0)