0
//.js
$scope.scopeObject = {
"a":{},
"b":{},
"c":{}.......
}
//html
<div>
<select ng-model="scopeModal" ng-options="key for (key,value) in scopeObject" ng-change = "getKey(group)"></select>
</div>
//js
$scope.getKey = function(group){
console.log(group)//undefined
}
在這種情況下,組中的功能是未定義... 我如何獲得關鍵的價值,我的功能? tyNG選項,如何讓鍵值功能(angularJS)
什麼是'group'你的情況? –
* – Vladimir