我的角度选择没有填充。我会失明吗? [英] My angular select isn't populating. Am I going blind?
本文介绍了我的角度选择没有填充。我会失明吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿,
我在我的应用程序中有十几个选择的例子,但这不是:
masterApp - JSFiddle [ ^ ]
fiddler中的评论解释了这个问题。
基本上,我有一个范围内的数组。我有一个基于该数组的选择选项。我填充数组。选项是空的> _<
这次我做错了什么?
谢谢
Andy
Hey,
I have a dozen examples of selects working in my app, but this is somehow not:
masterApp - JSFiddle[^]
Comments in fiddler explain the issue.
Basically, I have an array in the scope. I have a select ng-options based on that array. I populate the array. The options are empty >_<
What am I doing wrong this time?
Thanks
Andy
推荐答案
< select>
标签需要<$ c $在Angular处理之前c> ng-model 属性。
https://docs.angularjs.org/api/ng/directive/select [ ^ ]
The<select>
tag needs anng-model
attribute before Angular will process it.
https://docs.angularjs.org/api/ng/directive/select[^]
这篇关于我的角度选择没有填充。我会失明吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文