Lecture23 ngIfngShowngHide

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

ng-if, ng-show,

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

You might also like