I currently have two main components in my Angular project: users.components.ts and register.components.ts. The users.components.ts displays a table of users, while the register.components.ts is where users can be added or edited.
After making changes to a user in the register.components.ts component, the user is redirected back to the users.components.ts component using router.navigate(). However, the updates are not immediately reflected in the users table unless the page is manually refreshed.
While this issue seems to be fairly common, I have yet to find a suitable solution. Below is the code snippet:
app-routing.module.ts
...
users.component.ts
...
register.component.ts
...
user.service.ts
...