YouTip LogoYouTip

Ng Ng Show

# AngularJS `ng-show` Directive [![Image 3: AngularJS Reference](#) AngularJS Reference](#) * * * ## AngularJS Example Show part of the content when a checkbox is checked: Show HTML:

Welcome

Welcome to my home.

[Try it Β»](#) * * * ## Definition and Usage The **ng-show** directive shows the specified HTML element if the expression evaluates to true, otherwise it hides the specified HTML element. * * * ## Syntax All HTML elements support this directive. * * * ## Parameter Values | Value | Description | | --- | --- | | _expression_ | If the expression evaluates to true, the specified HTML element is shown. | * * AngularJS Reference](#)
← Ng Ng SrcsetNg Ng Show β†’