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
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