Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop down not populated when provide data thourgh promise #50

Open
hassandad opened this issue Nov 17, 2015 · 3 comments
Open

Drop down not populated when provide data thourgh promise #50

hassandad opened this issue Nov 17, 2015 · 3 comments

Comments

@hassandad
Copy link

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

@makileeshao
Copy link

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?

@h3nr1ke
Copy link

h3nr1ke commented Jan 25, 2016

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

@yogenvrm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants