私はOn change機能のDropdown select値を取得しようとしていますが、未定義の値があります。DropDownの値を取得しようとしています
私はこれまでやった
<div class="list">
<div class="item item-input item-select">
<div class="input-label">
Status
</div>
<select id="ddlstatus" ng-model="status" ng-change="getalert()" >
<option ng-repeat=" status in Status" value="{{status.StatusCodeId}}">{{status.StatusCode}}</option>
</select>
</div>
</div>
と私の角度コードは、私はそれを使用することができますので、私はドロップダウンリスト値を選択して得ることができるので、私はhere.howを欠けている
$scope.StatusD =function(){
$scope.Status=[ ];
$http({
crossDomain: true,
type: 'GET',
dataType: 'jsonp',
url: Baseurl+'/api/Status'
}).then(function(resp){
$scope.Status = resp.data;
console.log($scope.Status);
});
};
$scope.getalert=function()alert(document.getElementById("ddlstatus").value)}
であることが何でありますかさらに