File tree Expand file tree Collapse file tree 2 files changed +5
-38
lines changed Expand file tree Collapse file tree 2 files changed +5
-38
lines changed Original file line number Diff line number Diff line change @@ -4,39 +4,22 @@ import { NgModule } from '@angular/core';
44// Rutas
55import { APP_ROUTES } from './app.routes' ;
66
7+ // Modules
8+ import { PagesModule } from './pages/pages.module' ;
79
10+ // componentes
811import { AppComponent } from './app.component' ;
912import { LoginComponent } from './login/login.component' ;
10- import { NopagefoundComponent } from './shared/nopagefound/nopagefound.component' ;
11- import { DashboardComponent } from './pages/dashboard/dashboard.component' ;
12- import { ProgressComponent } from './pages/progress/progress.component' ;
13- import { Graficas1Component } from './pages/graficas1/graficas1.component' ;
14- import { HeaderComponent } from './shared/header/header.component' ;
15- import { SidebarComponent } from './shared/sidebar/sidebar.component' ;
16- import { BreadcrumbsComponent } from './shared/breadcrumbs/breadcrumbs.component' ;
17- import { PagesComponent } from './pages/pages.component' ;
1813import { RegisterComponent } from './login/register.component' ;
1914
20-
2115@NgModule ( {
2216 declarations : [
2317 AppComponent ,
2418 LoginComponent ,
25- NopagefoundComponent ,
26- DashboardComponent ,
27- ProgressComponent ,
28- Graficas1Component ,
29- HeaderComponent ,
30- SidebarComponent ,
31- BreadcrumbsComponent ,
32- PagesComponent ,
3319 RegisterComponent
3420 ] ,
35- imports : [
36- BrowserModule ,
37- APP_ROUTES
38- ] ,
21+ imports : [ BrowserModule , APP_ROUTES , PagesModule ] ,
3922 providers : [ ] ,
4023 bootstrap : [ AppComponent ]
4124} )
42- export class AppModule { }
25+ export class AppModule { }
Original file line number Diff line number Diff line change 11import { RouterModule , Routes } from '@angular/router' ;
22
33import { NopagefoundComponent } from './shared/nopagefound/nopagefound.component' ;
4-
5- import { DashboardComponent } from './pages/dashboard/dashboard.component' ;
64import { LoginComponent } from './login/login.component' ;
7- import { ProgressComponent } from './pages/progress/progress.component' ;
8- import { Graficas1Component } from './pages/graficas1/graficas1.component' ;
9-
10- import { PagesComponent } from './pages/pages.component' ;
115import { RegisterComponent } from './login/register.component' ;
126
137const appRoutes : Routes = [
14- {
15- path : '' ,
16- component : PagesComponent ,
17- children : [
18- { path : 'dashboard' , component : DashboardComponent } ,
19- { path : 'progress' , component : ProgressComponent } ,
20- { path : 'graficas1' , component : Graficas1Component } ,
21- { path : '' , redirectTo : '/dashboard' , pathMatch : 'full' }
22- ]
23- } ,
248 { path : 'login' , component : LoginComponent } ,
259 { path : 'register' , component : RegisterComponent } ,
2610 { path : '**' , component : NopagefoundComponent }
You can’t perform that action at this time.
0 commit comments