1<select id="selectid" class="form-control-mb-12" (change)="modo($event.target.value)">
2 <option value="mod1">MODO 1</option>
3 <option value="mod2">MODO 2</option>
4 <option value="mod3">MODO 3</option>
5</select>
6
7modo(value: string){
8 switch(value) {
9 case "mod1":
10 // if modo 1 is selected do something.
11 break;
12 case "mod2":
13 // if modo 2 is selected do something.
14 break;
15 case "mod3":
16 // if modo 3 is selected do something.
17 break;
18 }
19}
20