Retrieve hash fragment from url with Angular2
<p>Given this url structure (over which I have no control), how can I retrieve the hash fragment using Angular2? </p>

<p><code>http://your-redirect-uri#access_token=ACCESS-TOKEN</code></p>

<p>My router does route to the correct component, but everything after <code>oauth</code> get scrapped and I can't find the hash fragment in request.params or location.path. Doomed??</p>

<p>Router config:</p>

<pre><code>@RouteConfig([
{path: '/welcome', name: 'Welcome', component: WelcomeComponent, useAsDefault: true},
{path: '/landing/oauth', name: 'Landing', component: LandingComponent}  // this one
</code></pre>

<p>])</p>