Getting document id adding /:id at routing module not working

Hi, i have been trying to retrieve the document id by appending /:id on the routing module although it isn’t working. i have my own file structure using index file that routes to welcome page, login and signup and home which routes to the other pages in my app after login. I have added the /:id to necessary modules but when i use {{}} the error states the id is not on that page. Any suggestions?

did you check out?

 const id = Number(this.route.snapshot.paramMap.get('id'));


I did indeed ive tried a few solutions.