What it does
Creates a view that is added to the parent NgSwitch
when no case expressions
match the
switch expression.
How to use
Class Overview
class NgSwitchDefault {
constructor
(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch)
}
Selectors
[ngSwitchDefault]
Class Description
Insert the sub-tree when no case expressions evaluate to the same value as the enclosing switch expression.
See NgSwitch
for more details and example.
Constructor
exported from @angular/common/index, defined in @angular/common/src/directives/ng_switch.ts