Php ng repeat未显示数据。。。。错误(angular.min.js:123错误:[ngRepeat:dups]http://errors.angularjs.org/1.6.4/ngRepeat/dupes?
我在选项标记中使用ng repeat生成多个选项。 但它不能正常工作 //下面是我的js代码Php ng repeat未显示数据。。。。错误(angular.min.js:123错误:[ngRepeat:dups]http://errors.angularjs.org/1.6.4/ngRepeat/dupes?,php,angularjs-directive,angularjs-ng-repeat,Php,Angularjs Directive,Angularjs Ng Repeat,我在选项标记中使用ng repeat生成多个选项。 但它不能正常工作 //下面是我的js代码 $http.get("assign_leads_1.php?dummydata=2").then(function (response) { alert(response.data); $scope.bdes = response.data; }); Below is the html code <d
$http.get("assign_leads_1.php?dummydata=2").then(function (response)
{
alert(response.data);
$scope.bdes = response.data;
});
Below is the html code
<div class="form-group">
<label>Assign To: </label>
<select ng-model="bde_tuid" class="form-control">
<option ng-repeat="bde in bdes" value="{{bde.tuid}}" >
{{bde.xyz}}
</option>
</select>
换行
<option ng-repeat="bde in bdes" value="{{bde.tuid}}" >
到
更改此行
<option ng-repeat="bde in bdes" value="{{bde.tuid}}" >
到
您得到什么结果警报(response.data);?您得到什么结果警报(response.data)?
<option ng-repeat="bde in bdes track by $index" value="{{bde.tuid}}" >