ngxtension / ngxtension-platform

Utilities for Angular

Home Page:https://ngxtension.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

injectParams - option for injecting child route params in parent compnent

DerHerrGammler opened this issue · comments

It would be great if there would be a simple injection method for getting all route params. So also the params from child routes.

As example I got the following routes:
/example/:id and /example/:id/:otherParam

The second path is a child route of the first and I want to access the :otherParam from the parent route. A option for that within the injectParams() or a new injectChildParams() would be great.