I've encountered an issue while using Angular 2 without the useHash
feature. When trying to visit the URL directly in a browser, I'm getting a 404 not found error.
I have searched extensively and attempted various solutions including:
- Adding
LocationStrategy
withPathLocationStrategy
; - Changing the
loadChildren
to relative path.
Unfortunately, none of these methods have resolved the issue. Can anyone offer assistance? Thank you.