'routing gives me 404 when I try to access to login
In my angular app(13 version) the routing doesn't work. I need to do the login so I do this in my angular routing:
const routes: Routes = [ {
path: 'idm/login', loadChildren: () => import("./components/login/login.module").then(m =>
m.LoginModule)
}
@NgModule({
imports: [RouterModule.forRoot(routes,{ scrollPositionRestoration: 'enabled' })],
exports: [RouterModule]
})
So I start my app with:
ng build --watch --base-href /Documental/
and when I go in :
http://localhost:8080/Documental/idm/login
it gives me 404. Anyone can help me?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
