ngShow (directive in module ng )

Improve this doc

Description

The ngShow and ngHide directives show or hide a portion of the DOM tree (HTML) conditionally.

Usage

as attribute
<ANY ng-show="{expression}">
   ...
</ANY>
as class
<ANY class="ng-show: {expression};">
   ...
</ANY>

Parameters

Example

Source





Demo