UNPKG

ngx-router

Version:

A utility to get route params, query params from Activated Route by using dependency injection

15 lines (11 loc) 313 B
import { map } from 'rxjs/operators'; function routeParamFactory(paramKey) { return (route) => { return route.paramMap.pipe(map(param => param.get(paramKey))); }; } /** * Generated bundle index. Do not edit. */ export { routeParamFactory }; //# sourceMappingURL=ngx-router-route-param.js.map