给定这个url struct (我无法控制),如何使用Angular2检索哈希片段?
http://your-redirect-uri#access_token=ACCESS-TOKEN
我的路由确实路由到正确的组件,但oauth
之后的所有内容都被废弃,我在请求中找不到哈希片段.参数或位置.路径注定的
路由配置:
@RouteConfig([
{path: '/welcome', name: 'Welcome', component: WelcomeComponent, useAsDefault: true},
{path: '/landing/oauth', name: 'Landing', component: LandingComponent} // this one
])