0 votes
in Angular by

What is the difference between ng-if and ng-show+ng-hide?

1. ng-if removes the HTML element completely from the DOM, whereas the ng-show + ng-hide just applies the CSS property display: none; to the elements. 

2. Both performs the same function

3. ng-if applies the CSS property display: none; to the elements and ng-show+ng-hide removes the HTML element completely from the DOM

1 Answer

0 votes
by
Correct answer is :- ng-if removes the HTML element completely from the DOM, whereas the ng-show + ng-hide just applies the CSS property display: none; to the elements.
...