@Hanzo wrote:
Hi
It is possible to select a external custom-component depends on a click on ionic segment button?Something like this:
<ion-header> <ion-segment mode="md" [(ngModel)]="sections" color="primary"> <ion-segment-button value="home"> {{'Home.home' | translate}} </ion-segment-button> <ion-segment-button value="config"> {{'Home.config' | translate}} </ion-segment-button> </ion-segment> </ion-header> <ion-content> <div [ngSwitch]="sections"> <custom-component *ngSwitchCase="'home'" [device]="currentDevice"></custom-component> </div> </ion-content>
Posts: 2
Participants: 2