Everything was running smoothly when I was working on my local machine, but once I uploaded the files generated from ng build --prod
to the server, a problem arose. Now, whenever I try to route via a button in my components, an error appears. When I click for the route, it shows the following error message:
. Additionally, I have 404 The requested document was not found on this server.
{path: 'callcenter/:id', component: CallCenterComponent}
defined in my app.module.ts and it works perfectly fine on my local machine as you can see here. Can anyone provide assistance with this issue?