1.

Differentiate between ng-if and ng-show directives.

Answer»

The ng-if directive does not RENDER the DOM element portion if the CONDITION specified is not satisfied. Here, the scope of the element would be destroyed if that is not rendered.

ng-show directive on the other HAND renders the DOM element but hides the DISPLAY (applying the ng-hide class on that DOM element) if the condition specified within it is not satisfied.



Discussion

No Comment Found