【发布时间】:2016-02-24 16:23:43
【问题描述】:
数据
countries: [
{
id: 'qwe123rty456',
name: 'Australia',
regions: [
{
id: 'poi098uyt765',
name: 'Western Australia'
},
{
id: '123poi098qwe',
name: 'Queensland'
}
]
}
]
我可以通过以下方式获取特定国家/地区:
$scope.country = $meteor.object(Countries, $stateParams.countryId);
但是我怎样才能得到一个特定的区域呢?如:
{id: '123poi098qwe', name: 'Queensland'}
【问题讨论】:
标签: angularjs mongodb meteor iron-router