0
データベースのデータをドロップダウンに入力しようとしています。私は、データベースからデータを取得していますが、ドロップダウンが、私は価値があるに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>