I가 하나 개의 코드 :변경이 잘못 되었습니까?
ng-change="selectVersion(i.id)"
: 시도는 가치를 표시 할 때 콘솔에 undefined
을받을 이유는
<select ng-options="i.id as i.os_version for i in devices"
ng-model="selected_version_os_to"
ng-change="selectVersion(i.id)">
<option value=''> Select version</option>
</select>
?
selectVersionfunction
내부 : 나는 정의되지 않은 i.id
를 얻을 :
$scope.selectVersion = function(item) {
console.log(item);
}