Google News
logo
AngularJS - Interview Questions
Explain ng-hide directive.
ng-hide directive hides a given control.

In below example, we've added ng-hide attribute to a HTML button and pass it a model. Then we've attached the model to a checkbox and can see the variation.

<input type = "checkbox" ng-model = "HideBtn">Free Time Learn
<button ng-hide = "HideBtn">Click Me!</button>
Advertisement