Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { ActivatedRoute } from '@angular/router';
- export function getFullTreeParams(route: ActivatedRoute, params = {}) {
- if (route) {
- params = {...params, ...route.snapshot.params};
- }
- return route.parent
- ? this.getFullTreeParams(route.parent, params)
- : params;
- }
Add Comment
Please, Sign In to add comment