📅  最后修改于: 2022-03-11 14:48:35.260000             🧑  作者: Mango
ngOnInit(): void {
console.log("activated route", this.activatedRoute);
this.activatedRoute.paramMap.subscribe(
(params: any) => {
console.log("in params", params);
this.userid = params.get('id');
console.log("in user id", this.userid);
this.getProfile();
}
)