Professional Documents
Culture Documents
Lecture23 ngIfngShowngHide
Lecture23 ngIfngShowngHide
Lecture23 ngIfngShowngHide
ng-hide
Summary
² ng-if is a general purpose “if statement” like attribute directive
• If its value is false, angular removes the containing element from
the DOM entirely
² ng-show/ng-hide attribute directives automatically attach CSS
classes to the containing element that either show or hide the
element
• The containing element does NOT get removed from the DOM