這是我選擇的元素:角度:選擇NG-模型編程改變,但NG-變化不會觸發事件
<select class="small-3 columns end statSelect"
ng-model="chart.categoryAxis"
ng-change="renderMainChart()"
ng-options="metric as metric.value for metric in chart.metrics()">
</select>
我改變chart.categoryAxis編程我每次點擊一個按鈕。但是,ng-change方法renderMainChart()不會被調用。爲什麼是這樣?
這裏是其中的一個選項的例子:
<option label="Ad Started" value="object:33">Ad Started</option>
取決於哪個按鈕我點擊,即適當地改變了NG-模型值。但ng-change函數renderMainChart()不會被調用。
'ng-change'是'