2017-01-17 11 views
0

データベースのデータをドロップダウンに入力しようとしています。私は、データベースからデータを取得していますが、ドロップダウンが、私は価値があるenter image description hereにconsole.logを行うpopulated.Whenされていない理由を私は知らない。ドロップダウンの値が入力されていません

getPdfControls().then(function (response) { 
    $scope.PdfControls = response; 
}); 

function getPdfControls() { 
    return $http.post(baseUrl + 'Admin/getPdfControls').then(function (response) { 
     console.log($.parseJSON(response.data)); 
     return $.parseJSON(response.data); 
    }) 
} 

<md-select ng-model="selected.pdfControl" ng-change="changePdfControl(selected.pdfControl)" required > 
    <md-option ng-repeat="pdfControl in pdfControls" value="{{pdfControl.ControlColumn}}">{{pdfControl.ControlText}}</md-option> 
</md-select> 

答えて

0

$scope.PdfControls = response; PdfControlsは
ng-repeat="pdfControl in pdfControls"大きなPで始まりますpdfコントロールは小文字で始まります

変数&オブジェクトのプロパティは大文字と小文字が区別されます

関連する問題