acute-select icon indicating copy to clipboard operation
acute-select copied to clipboard

Drop down not populated when provide data thourgh promise

Open hassandad opened this issue 9 years ago • 3 comments

When i provide data by using promise, dropdown does not get populated. here is my code

ContactDBService.select().then(function (result) { $scope.colours = [ { name: 'black', id: 0 }, { name: 'white', id: 1 }, { name: 'red', id: 2 }];

});

Please provide solution if im missing some thing

hassandad avatar Nov 17 '15 11:11 hassandad

i had the same issue. If it is manually fed with json data, it is alright. The minute i switch it to getting data from server via http, it is suddenly not working. I tried to issue a $scope.$apply(), but still no effect. any updates on this?

makileeshao avatar Jan 05 '16 02:01 makileeshao

I'm still facing this issue also... =( any ideas?

h3nr1ke avatar Jan 25 '16 23:01 h3nr1ke

same issue here, no data from service using ng-resource but works on directly feeding the json data in the controller...

yogenvrm avatar Jan 26 '16 12:01 yogenvrm