Creates a view that is added to the parent NgSwitch
when no case expressions match the switch expression.
<container-element [ngSwitch]="switch_expression"> <some-element *ngSwitchCase="match_expression_1">...</some-element> <some-other-element *ngSwitchDefault>...</some-other-element> </container-element>
class NgSwitchDefault { constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch) }
[ngSwitchDefault]
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(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch)
exported from @angular/common/index, defined in @angular/common/src/directives/ng_switch.ts
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/common/index/NgSwitchDefault-directive.html