Angular paramMap vs queryParamMap?

ParamMap for routes like user/:id. Id param belongs only this route.

QueryParamMap is for eg. user/:id?tab=edit. Tab is a global query param, it can be read from the ActivatedRoute in the user route’s component as well as any of its ancestors.

Leave a Comment