I use ngSwitchCase for 3 cases, which inside every case I used the same part code, which I don't want. How could I remove this redundancy?
The redundancy code is inside "app-device"
<div
*ngSwitchCase="case1"
>
<div>
<div >
<ng-container>
<i>Icon 1</i>
</ng-container>
</div>
<div>
<app-device
*ngIf="status"
[statusInformation]="status"
></app-device>
<app-device
*ngIf="information"
[statusInformation]="information"
></app-device>
</div>
</div>
</div>