File tree Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ import { NgModule } from '@angular/core' ;
2+ import { SharedModule } from '../shared/shared.module' ;
3+ import { DashboardComponent } from './dashboard/dashboard.component' ;
4+ import { ProgressComponent } from './progress/progress.component' ;
5+ import { Graficas1Component } from './graficas1/graficas1.component' ;
6+ import { PagesComponent } from './pages.component' ;
7+ import { PAGES_ROUTES } from './pages.routes' ;
8+
9+
10+ @NgModule ( {
11+ declarations : [
12+ PagesComponent ,
13+ DashboardComponent ,
14+ ProgressComponent ,
15+ Graficas1Component
16+ ] ,
17+ exports : [
18+ PagesComponent ,
19+ DashboardComponent ,
20+ ProgressComponent ,
21+ Graficas1Component
22+ ] ,
23+ imports : [
24+ SharedModule ,
25+ PAGES_ROUTES
26+ ]
27+ } )
28+ export class PagesModule { }
Original file line number Diff line number Diff line change 1+ import { RouterModule , Routes } from '@angular/router' ;
2+
3+ import { PagesComponent } from './pages.component' ;
4+ import { DashboardComponent } from './dashboard/dashboard.component' ;
5+ import { ProgressComponent } from './progress/progress.component' ;
6+ import { Graficas1Component } from './graficas1/graficas1.component' ;
7+
8+ const pagesRoutes : Routes = [
9+ {
10+ path : '' ,
11+ component : PagesComponent ,
12+ children : [
13+ { path : 'dashboard' , component : DashboardComponent } ,
14+ { path : 'progress' , component : ProgressComponent } ,
15+ { path : 'graficas1' , component : Graficas1Component } ,
16+ { path : '' , redirectTo : '/dashboard' , pathMatch : 'full' }
17+ ]
18+ }
19+ ] ;
20+
21+ export const PAGES_ROUTES = RouterModule . forChild ( pagesRoutes ) ;
Original file line number Diff line number Diff line change 1+ import { NgModule } from '@angular/core' ;
2+ import { BreadcrumbsComponent } from './breadcrumbs/breadcrumbs.component' ;
3+ import { HeaderComponent } from './header/header.component' ;
4+ import { NopagefoundComponent } from './nopagefound/nopagefound.component' ;
5+ import { SidebarComponent } from './sidebar/sidebar.component' ;
6+
7+ @NgModule ( {
8+ declarations : [
9+ BreadcrumbsComponent ,
10+ HeaderComponent ,
11+ NopagefoundComponent ,
12+ SidebarComponent
13+ ] ,
14+ exports : [
15+ BreadcrumbsComponent ,
16+ HeaderComponent ,
17+ NopagefoundComponent ,
18+ SidebarComponent
19+ ]
20+ } )
21+ export class SharedModule { }
You can’t perform that action at this time.
0 commit comments