I\'m trying to understand the difference between ng-if and ng-show/ng-hide, but they look the same to me.
ng-if
ng-show
ng-hide
Is there a differenc
The ng-if directive removes the content from the page and ng-show/ng-hide uses the CSS display property to hide content.
ng-show/ng-hide
display
This is useful in case you want to use :first-child and :last-child pseudo selectors to style.
:first-child
:last-child