-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e484bc
commit 8aa19d4
Showing
10 changed files
with
140 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,22 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
|
||
import { DashboardComponent } from './pages/dashboard/dashboard.component'; | ||
import { LoginComponent } from './auth/login/login.component'; | ||
import { RegisterComponent } from './auth/register/register.component'; | ||
import { ProgressComponent } from './pages/progress/progress.component'; | ||
import { Grafica1Component } from './pages/grafica1/grafica1.component'; | ||
import { NopagefoundComponent } from './pages/nopagefound/nopagefound.component'; | ||
import { PagesComponent } from './pages/pages.component'; | ||
import { PagesRoutingModule } from './pages/pages.routing'; | ||
import { AuthRoutingModule } from './auth/auth.routing'; | ||
|
||
const routes: Routes = [ | ||
|
||
{ | ||
path: '', | ||
component: PagesComponent, | ||
children: [ | ||
{ path: 'dashboard', component: DashboardComponent }, | ||
{ path: 'progress', component: ProgressComponent }, | ||
{ path: 'grafica1', component: Grafica1Component }, | ||
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' } | ||
] | ||
}, | ||
|
||
{ path: 'register', component: RegisterComponent }, | ||
{ path: 'login', component: LoginComponent }, | ||
import { NopagefoundComponent } from './nopagefound/nopagefound.component'; | ||
|
||
const routes: Routes = [ | ||
{path: '', redirectTo: '/dashboard', pathMatch: 'full'}, | ||
{ path: '**', component: NopagefoundComponent } | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forRoot(routes)], | ||
imports: [ | ||
RouterModule.forRoot(routes), | ||
PagesRoutingModule, | ||
AuthRoutingModule | ||
], | ||
exports: [RouterModule] | ||
}) | ||
export class AppRoutingModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { LoginComponent } from './login/login.component'; | ||
import { RegisterComponent } from './register/register.component'; | ||
|
||
|
||
|
||
@NgModule({ | ||
declarations: [ | ||
LoginComponent, | ||
RegisterComponent, | ||
], | ||
exports: [ | ||
LoginComponent, | ||
RegisterComponent, | ||
], | ||
imports: [ | ||
CommonModule | ||
] | ||
}) | ||
export class AuthModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Routes, RouterModule } from '@angular/router'; | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { RegisterComponent } from './register/register.component'; | ||
import { LoginComponent } from './login/login.component'; | ||
|
||
|
||
const routes: Routes = [ | ||
{ path: 'register', component: RegisterComponent }, | ||
{ path: 'login', component: LoginComponent } | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class AuthRoutingModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { RouterModule } from '@angular/router'; | ||
|
||
import { SharedModule } from '../shared/shared.module'; | ||
|
||
import { DashboardComponent } from './dashboard/dashboard.component'; | ||
import { ProgressComponent } from './progress/progress.component'; | ||
import { Grafica1Component } from './grafica1/grafica1.component'; | ||
import { PagesComponent } from './pages.component'; | ||
|
||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
SharedModule, | ||
RouterModule | ||
], | ||
declarations: [ | ||
DashboardComponent, | ||
ProgressComponent, | ||
Grafica1Component, | ||
PagesComponent | ||
], | ||
exports: [ | ||
DashboardComponent, | ||
ProgressComponent, | ||
Grafica1Component, | ||
PagesComponent | ||
] | ||
}) | ||
export class PagesModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Routes, RouterModule } from '@angular/router'; | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { DashboardComponent } from './dashboard/dashboard.component'; | ||
import { ProgressComponent } from './progress/progress.component'; | ||
import { Grafica1Component } from './grafica1/grafica1.component'; | ||
import { PagesComponent } from './pages.component'; | ||
|
||
|
||
const routes: Routes = [ | ||
{ | ||
path: 'dashboard', | ||
component: PagesComponent, | ||
children: [ | ||
{ path: '', component: DashboardComponent }, | ||
{ path: 'progress', component: ProgressComponent }, | ||
{ path: 'grafica1', component: Grafica1Component }, | ||
] | ||
}, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class PagesRoutingModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { BreadcrumbsComponent } from './breadcrumbs/breadcrumbs.component'; | ||
import { SidebarComponent } from './sidebar/sidebar.component'; | ||
import { HeaderComponent } from './header/header.component'; | ||
|
||
|
||
|
||
@NgModule({ | ||
declarations: [ | ||
BreadcrumbsComponent, | ||
SidebarComponent, | ||
HeaderComponent, | ||
], | ||
exports: [ | ||
BreadcrumbsComponent, | ||
SidebarComponent, | ||
HeaderComponent, | ||
], | ||
imports: [ | ||
CommonModule | ||
] | ||
}) | ||
export class SharedModule { } |