How to fix #Angular 6 #refresh page #404 error. Angular stops working when refreshing?

How to fix #Angular 6 #refresh page #404 error. Angular stops working when refreshing?



In this video we going to watch about #angular page #refresh issue when you refresh the page by pressing CTRL + F5 or CTRL + R. If you want to switch to the #HashBang approach, you need to use this configuration.

33 thoughts on “How to fix #Angular 6 #refresh page #404 error. Angular stops working when refreshing?

  1. My Angular ver-10 Ecommerce Project – Its working fine locally using "ng serve" but I published using "ng-build" and hosted using "http-server" page its going to Home Screen (eg: Dashboard http://192.168.1.20:8080). But if I click any link (button – eg: Cart page, Order page, Register page, etc.) from Dashboard page, its not going and its gets error eg: "This 192.168.1.20 page can’t be found No webpage was found for the web address: http://192.168.1.20:8080/cart HTTP ERROR 404…."

    here is my routing code "app.module.ts"

    https://stackoverflow.com/q/64911280/14552957

Leave a Reply

Your email address will not be published. Required fields are marked *