AngularJS Developer Question:

Download Job Interview Questions and Answers PDF

What is ng-show directive?

AngularJS Developer Interview Question
AngularJS Developer Interview Question

Answer:

ng-show directive shows a given control.

In below example, we've added ng-show 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 = "showHide1">Show Button
<button ng-show = "showHide1">Click Me!</button>

Download AngularJS Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me what is provider?Explain me how do you reset a “$timeout”, and disable a “$watch()”?