@schaman/angular-router-params
v3.0.1
Published
Get router parameters in the easiest way.
Downloads
2
Readme
@schaman/angular-router-params
Get router parameters in the easiest way.
Provide, inject and use the service.
@Component({
/* ... */
providers: [SchamanRouterParams],
})
class ExampleComponent {
public id$ = this.routerParams.id$;
public carId$ = this.routerParams['carId'];
public constructor(private routerParams: SchamanRouterParams) {}
}
Browser-compatibility
The library uses Proxy. See compatibility.
Running unit tests
Run nx test angular-router-params
to execute the unit tests.