+ 1

Angular , url is changing but content remains same

Hello, I am not familiar with angular framework . There is a route , as products1/:id , and there is a drop down which consists links of products , that points to that path. when visiting a product page , let's say products1/56 , it works . But when clicking on another product , just the url changes as products1/62 , but the content of that component is not changing . Can someone please help me out on this? 🙏

22nd Nov 2021, 2:50 PM
Saurav Kumar
Saurav Kumar - avatar
1 Odpowiedź
0
Try to changing state, which forces the component to re render. Just changing the url won't re render the page. This is just an assumption, won't be able to help you, unless code/implementation is shared.
28th Nov 2021, 9:49 PM
Zubae
Zubae - avatar