I am working on a simple angular 2 application and routing does not seem to be working for me.
When I am trying to do routing for my application with a url like myapp.com/15/hello, the url parameters are preserved with non hash routing with the code like this
RouterModule.forRoot([
{ path: '**', component: MyComponent },
])
However when I move to useHash routing, if i try to do the same request myapp.com/15/hello, the parameters extra parameters are stripped from the url and becomes like this : myapp.com/#/
RouterModule.forRoot([
{ path: '**', component: MyComponent},
],
{
useHash: true,
})
Is there any way to usehash navigation without it stripping the extra parameters from the url?
Thank you