我有一个对象是这样的:选择NG选项不工作
"choiceList":[{"1":"cash"},{"2":"credit"}]
我想表明这个对象在select
元件,其中option
元素显示现金和信用卡。 我有另一个变量,我想要保存1或2,如果选择现金或信用。
HTML:
<select name="memoType" ng-model="lookUpValue">
<option value="">--Please Choose--</option>
<option ng-repeat="(key,value) in list">{{value}}</option>
</select>
后到现在为止您做了什么? –