1 ngOnInit(): void {
2 console.log("activated route", this.activatedRoute);
3 this.activatedRoute.paramMap.subscribe(
4 (params: any) => {
5 console.log("in params", params);
6
7 this.userid = params.get('id');
8 console.log("in user id", this.userid);
9 this.getProfile();
10 }
11 )
1 ngOnInit(): void {
2 console.log("activated route", this.activatedRoute);
3 this.activatedRoute.paramMap.subscribe(
4 (params: any) => {
5 console.log("in params", params);
6
7 this.userid = params.get('id');
8 console.log("in user id", this.userid);
9 this.getProfile();
10 }
11 )