Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.state('pushNotifications', {
url: '/pushNotifications',
controller: 'PushNotificationsCtrl',
templateUrl: 'packages/pushNotifications/partials/pushNotifications.html',
resolve: {
initialUsers: ['$q', function ($q) {
var users = [
{ name: 'Hal Incandenza', deviceUuid: '123' },
{ name: 'Johnny Banana', deviceUuid: '456' }
];
console.log($q.resolve);
return $q.resolve(users);
}]
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.