ngx-router
Version:
A utility to get route params, query params from Activated Route by using dependency injection
19 lines (14 loc) • 787 B
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define('ngx-router/route-param-snapshot', ['exports'], factory) :
(global = global || self, factory((global['ngx-router'] = global['ngx-router'] || {}, global['ngx-router']['route-param-snapshot'] = {})));
}(this, (function (exports) { 'use strict';
function routeParamSnapshotFactory(paramKey) {
return function (route) {
return route.snapshot.paramMap.get(paramKey);
};
}
exports.routeParamSnapshotFactory = routeParamSnapshotFactory;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=ngx-router-route-param-snapshot.umd.js.map