ng-show

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

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

Syntax of ng-show:
<div ng-show="IsShow"></div>

How to Use ng-show/ng-show Example:
Example 1:
<div ng-init="IsShow=true">
        How to Use ng-show
    <div ng-show="IsShow">
        AngularJs Example Of ng-show
    </div>
</div>
O/P: How to Use ng-show
     AngularJs Example Of ng-show

<div ng-init="IsShow=true">
      How to Use ng-show
    <div ng-show="!IsShow">
        AngularJs Example Of ng-show
    </div>
</div>

O/P: How to Use ng-show

No comments :

Post a Comment