Skip to content

Instantly share code, notes, and snippets.

@trashhalo
Created August 2, 2016 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trashhalo/331be18284997f048a38ea21a6bbaac5 to your computer and use it in GitHub Desktop.
Save trashhalo/331be18284997f048a38ea21a6bbaac5 to your computer and use it in GitHub Desktop.
.state('G', {
redirectTo: function (trans) {
var svc = trans.injector().get('SomeAsyncService');
var promise = svc.getAsyncRedirectTo(trans.params.foo);
return promise;
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment