example. NgSwitch is an Angular directive that displays one element from a possible set of elements based on some condition. NgSwitch uses NgSwitchCase and NgSwitchDefault directive. NgSwitch uses ngSwitchCase keyword to define a set of possible element trees and ngSwitchDefault ...
Elements within the [NgSwitch] statement but outside of any NgSwitchCase or ngSwitchDefault directive are preserved at the location.Example: Three things to keep in mind ngSwitch, ngSwitchCase and ngSwitchDefault.ngSwitch - set the property value of model. For example - viewMode, which is ...