how to change ng-model value in option angularjs (ng ngoption)

早过忘川 提交于 2021-02-11 14:32:58

问题


<select>
    <option data-ng-click="GetNewData(); previewWidth = 1920; previewHeight = 1080" value="FETCH">1</option>
    <option data-ng-click="GetNewData(); previewWidth = 2000; previewHeight = 1060" value="FETCH">2</option>
    <option>3</option>
</select>

data-ng-click does work on '< button >' but somehow this (option example above) isn't possible... I tried to use data-ng-selected but that will use 'selected' and won't change the value.

来源:https://stackoverflow.com/questions/65180621/how-to-change-ng-model-value-in-option-angularjs-ng-ngoption

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!