Given this url structure (over which I have no control), how can I retrieve the hash fragment using Angular2?
http://your-redirect-uri#access_token=ACCESS-TOKEN
My router does route to the correct component, but everything after oauth
get scrapped and I can't find the hash fragment in request.params or location.path. Doomed??
Router config:
@RouteConfig([
{path: '/welcome', name: 'Welcome', component: WelcomeComponent, useAsDefault: true},
{path: '/landing/oauth', name: 'Landing', component: LandingComponent} // this one
])
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…