2016-08-30 55 views

回答

2
<select [(ngModel)]="selected" (ngModelChange)="selectedChanged()" class="form-control box" id="title" required> 
class MyComponent { 
    selected:string; 
    selectedChanged() { 
    console.log(this.selected); 
    } 
} 
+1

感謝它爲我工作 – kapiljain123

相關問題