Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // app.module.ts
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- AppRoutingModule,
- ContactsModule,
- UtilsModule.forRoot()
- ],
- providers: [],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
- // ===============================
- // app-routing.module.ts
- const routes: Routes = [
- { path: 'home', loadChildren: () => import('./features/home/home.module').then(m => m.HomeModule) },
- { path: 'catalog', loadChildren: () => import('./features/catalog/catalog.module').then(m => m.CatalogModule) },
- // IL PROBLEMA È QUI! Non carica questa pagina
- { path: 'welcome', loadChildren: () => import('./features/welcome/welcome.module').then(m => m.WelcomeModule) },
- /*{ path: 'contacts', loadChildren: () => import('./features/contacts/contacts.module').then(m => m.ContactsModule) }*/
- ];
- @NgModule({
- imports: [RouterModule.forRoot(routes)],
- exports: [RouterModule]
- })
- export class AppRoutingModule { }
- // =====
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement