UNPKG

ngx-router

Version:

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

15 lines (11 loc) 299 B
import { map } from 'rxjs/operators'; function routeDataFactory(paramKey) { return ({ data }) => { return data.pipe(map((data) => data[paramKey])); }; } /** * Generated bundle index. Do not edit. */ export { routeDataFactory }; //# sourceMappingURL=ngx-router-route-data.js.map