When to favor ng-if vs. ng-show/ng-hide?
Asked 07 September, 2021
Viewed 2.2K times
  • 52
Votes

I understand that ng-show and ng-hide affect the class set on an element and that ng-if controls whether an element is rendered as part of the DOM.

Are there guidelines on choosing ng-if over ng-show/ng-hide or vice-versa?

7 Answer