activate router angular

Solutions on MaxInterview for activate router angular by the best coders in the world

showing results for - "activate router angular"
Karl
01 Jan 2018
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    )
Paola
12 Jul 2018
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    )