0
<select ng-option="ubrandname as ubrandname.brand for brand in ubrandname track by ubrandname.brand" ng-model="ubrandname"></select>
這是我調用動態數據集從我js
文件呼叫在下拉列表NG選項動態數據angularjs
//brandnamebyid
$http.get('/brandinfo.asmx/getbrandname', {
params: {
log: log,
pm: pm,
id: $scope.updateparam.Id
}
})
.then(function (response) {
{
$scope.brandfunction = response.data.branddetails;
$scope.ubrandname = $scope.brandfunction[0];
console.log($scope.ubrandname);
}
});
我想我不能寫NG選項的正確語法下拉列表在我的下拉列表中,任何人都可以在這裏幫助我嗎?