hi, i cant seem to get the 2nd ng-repeat where the first one works fine. i checked the codes, all is fine no error.
Flow :
$http --> 1st ng- repeat --> 1st list Click(item) --> $http --> 2nd ng- repeat --> 2nd list which is not showing anyting.
the data from $http is fine and i have alert the result , giving [object Object] which is fine.
showDetails.html
<ion-view view-title="Parts Listing"> <ion-content>
<ion-item ng-repeat="item in items"
item="item"
class="item-remove-animate">
{{item.PartNo}}
</ion-item>
Controller.js for 2nd http and store in scope
.controller('AppCtrl2', function($scope, $state, $http, $window, $filter) {
$scope.clicker = function(item)
{
$scope.items=[];
$http.get('http://localhost:8021/testfor%20host/getDetails.php?MechNo='+ item)
.success(function(result2){
$scope.items = result2;
console.log(result2); // for browser console
alert($scope.items);
})
.error(function(result2){
console.log('data error');
alert(result2);
})
.then(function(result2){
things = result2.data;
});
} });