I do not know how to use the change in Angular. I need to bring one component to another. I am using a select, and each option of the select, is a component to which I must go. They tell me that I must use the change and a switch to achieve what I want. I intended to do so ...
<mz-select-container>
<select mz-select
id="options-select"
[placeholder]="''"
>
<div *ngChange> </div>
<option Flight>
<app-flight-search></app-flight-search>
</option>
<option Flight and hotel>
<app-flight-plus-hotel-search></app-flight-plus-hotel-search>
</option>
<option Hotel>
<app-hotel-search></app-hotel-search>
</option>
<option Car>
<app-car-search></app-car-search>
</option>
<option Insurance>
<app-insurance-search></app-insurance-search>
</option>
<option Packacge>
<app-package-search></app-package-search>
</option>
</select>
</mz-select-container>
But it does not give