mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-18 07:50:52 +08:00
committed by
Tobias Bosch
parent
78954ffcde
commit
adb5ee2e0a
@@ -173,10 +173,10 @@ var ngShowDirective = ['$animate', function($animate) {
|
||||
*
|
||||
* ```html
|
||||
* <!-- when $scope.myValue is truthy (element is hidden) -->
|
||||
* <div ng-hide="myValue"></div>
|
||||
* <div ng-hide="myValue" class="ng-hide"></div>
|
||||
*
|
||||
* <!-- when $scope.myValue is falsy (element is visible) -->
|
||||
* <div ng-hide="myValue" class="ng-hide"></div>
|
||||
* <div ng-hide="myValue"></div>
|
||||
* ```
|
||||
*
|
||||
* When the ngHide expression evaluates to true then the .ng-hide CSS class is added to the class attribute
|
||||
|
||||
Reference in New Issue
Block a user