1.

Explain Ng-show Directive?

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>

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>



Discussion

No Comment Found