route with id param anguler 9 code example
Example: route parammap subscribe angular 9
this.route.paramMap.subscribe((params: ParamMap) => console.log(params.get('id')));
this.route.paramMap.subscribe((params: ParamMap) => console.log(params.get('id')));