Hello, Priyanka Sethi
I have the following question:
I need to get the latest information on a user account before a page loads.
To do so, I use the resolve object inside the when in routeProvider, for
example:
...
.when('/path/{{ param }}', {
templateUrl: 'path/to/view.html',
controller: 'nameCtrl',
resolve: {
getUserInfo: function(injectables){
...
}
}
});
How can I create a global resolve object for all my routes, so that I do
this
...
resolve: myResolveObject
instead of
resolve: {
....
}
Thank you
Regards
Jake
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.