showing results for - "how to get selected value from between form tags in angular"
Kayla
25 Aug 2016
1 //component.html
2<select class="form-control" #t (change)="callType(t.value)">
3      <option *ngFor="#type of types" [value]="type">{{type}}</option>
4    </select>
5
6//component.ts
7this.types = [ 'type1', 'type2', 'type3' ];
8   this.order = {
9      type: 'type1'          
10  };  
11
12  callType(value){
13    console.log(value);
14    this.order.type=value;
15  }
16