Sunday, 18 October 2015

ng-hide

What is ng-hide: ng-hide used to hide/show a HTML element on specified condition.

Description of ng-hide: The HTML hidden/shown by adding/removing a class .ng-hide respectively.

Syntax of ng-hide:<div ng-hide="Ishide"></div>


How to Use ng-hide/ng-hide Example:<div ng-init="Ishide=true">
        How to Use ng-hide
    <div ng-hide="Ishide">
        AngularJs Example Of ng-hide
    </div>
</div>
O/P: How to Use ng-hide    

<div ng-init="Ishide=true">
      How to Use ng-hide
    <div ng-hide="!Ishide">
        AngularJs Example Of ng-hide
    </div>
</div>
O/P: How to Use ng-hide
      AngularJs Example Of ng-hide

No comments :

Post a comment