Before deploying the angular project in server we need to build angular project for production. We also need to change the routing path in index.html file from <base href=”/”> to <base href=”./”>
if it is not done then your project wouldn’t get loaded properly there will be some routing error saying 404 file not found.