fengxiang
2018-08-02 c69ddde7828d777f04c6468c269aaa0aa03d72c9
1
2
3
4
5
6
7
8
9
<!-- <ng-template [ngSwitch]="deviceControllerService.incumbent">
   <app-device-status *ngSwitchCase="status"></app-device-status>
</ng-template> -->
<ng-container [ngSwitch]="deviceControllerService.incumbent">
    <app-device-status *ngSwitchCase="'status'"></app-device-status>
    <app-device-data *ngSwitchCase="'data'"></app-device-data>
    <app-device-status   *ngSwitchDefault>
    </app-device-status>
</ng-container>