What I mean by resolve in a resolve is that I want to be able to resolve the user first, and then resolve all his additional info, eg, addressess, contacts, friends.
What I currently have:
.state('website', {
url : '',
abstract : true,
resolve : {
// Request the current signed in user >
current_user : ['Auth', function(Auth){
return Auth.requestUser();
}]
},
views : {
'main' : {
templateUrl : 'template.html'
}
}
})
What I'll like to do is the following:
.state('website', {
url : '',
abstract : true,
resolve : {
// Request the current signed in user >
current_user : ['Auth', function(Auth){
Auth.requestUser().then(function(){
// HERE I WANT TO RESOLVE OTHER RESOURCES
// WHAT WILL I RETURN HERE?
});
}]
},
views : {
'main' : {
templateUrl : 'template.html'
}
}
})
I'm not sure if this is possible.