I am using a hash location strategy in Angular
routing.module.ts
@NgModule({
imports: [
RouterModule.forRoot(routes, { useHash: true })
],
exports: [
RouterModule
]
})
app.module.ts
@NgModule({
providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy }]
})
I am routing from some other application to my angular application with this URL
HTTP://localhost:4200?param_x=xyz¶m_y=abc
I want to get values of these params in my application, how do I do that?
I tried using Activated route snapshot as well as subscribe, both give me empty values.