You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My default state route has a resolve that gets the name of the users default report (view). How can I use the result of that resolve to redirectTo: ?
I see this from the API:
// a fn returning a promise for a redirect.state('G',{redirectTo: (trans)=>{letsvc=trans.injector().get('SomeAsyncService')letpromise=svc.getAsyncRedirectTo(trans.params.foo);returnpromise;}})
but in this react version... I don't think getAsyncRedirectTo is available... or if it is, I'm not finding it.
and now that I recheck let svc = trans.injector().get('MyService') does not return either. Thows error: Error: Resolvable async .get() not complete:"MyService"
How should I be doing this?
The text was updated successfully, but these errors were encountered:
My default state route has a resolve that gets the name of the users default report (view). How can I use the result of that resolve to redirectTo: ?
I see this from the API:
but in this react version... I don't think getAsyncRedirectTo is available... or if it is, I'm not finding it.
and now that I recheck
let svc = trans.injector().get('MyService')
does not return either. Thows error:Error: Resolvable async .get() not complete:"MyService"
How should I be doing this?
The text was updated successfully, but these errors were encountered: