AngularJS Developer Question:
Download Questions PDF

What is ng-hide directive?

Answer:

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 = "showHide2">Hide Button
<button ng-hide = "showHide2">Click Me!</button>

Download AngularJS Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain which components can be injected as a dependency in AngularJS?Do you know what is MVC?