$scope
在 Angular 评估事件时,有没有办法打破并查看变量ng-change
?
我将以下内容作为与UI-grid一起使用的自定义 footerCellTemplate 的一部分:
<select class="form-control" ng-model="col.colDef.stat" ng-options="stat as stat for stat in col.getRenderContainer().grid.stats" ng-change="col.getRenderContainer().grid.update_stat()"></select>
ng-options
该元素工作正常,我可以看到预期的选项,但ng-change
即使update_stat()
只有alert
.
update_stat()
如果我从控制台运行它,它工作正常。没有要报告的相关控制台错误。
如何$scope
在执行时检查元素ng-change
?
Plunkr适合任何想深入挖掘的人。