1.

Explain 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>

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>



Discussion

No Comment Found