UNPKG

ngx-router

Version:

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

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