#retrieving bad params from route
5 messages · Page 1 of 1 (latest)
Hi please share all related code snippets.
Here's the snippet where i try to get it : const routeParams = this.route.snapshot.paramMap; const userIdFromRoute = Number(routeParams.get('userId')); this.usrId = userIdFromRoute;
And my router link is [routerLink]="['/users', user.id]"
Oh, i think i see it now
I rectified it, TS don't like big numbers