【发布时间】:2015-06-09 07:34:49
【问题描述】:
给这个对象的对象:(填充方式更多)
$scope.object = {
"activities":
{
"1": {
"name": "Watch a movie",
}
"2": {
"name": "Chill at home",
}
},
"people":
{
"1": {
"name": "with your best friend",
}
}
如何在我的选择中填写所有活动名称?
我现在有
可以这样做吗?
【问题讨论】:
-
ng-options="activity.name for (key , activity) in object.activities" -
非常感谢它有效