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 {{item.id}} the error states the id is not on that page. Any suggestions?
Hi
did you check out?
https://angular.io/tutorial/toh-pt5#add-a-hero-detail-route
const id = Number(this.route.snapshot.paramMap.get('id'));
Hi,
I did indeed ive tried a few solutions.