added page not found module and removed leaflet module
parent
740760029d
commit
9a2536ba68
|
@ -1,16 +1,17 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { ProfileComponent } from './profile/profile.component';
|
||||
import { DeviceComponent } from './device/device.component';
|
||||
|
||||
// import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
|
||||
import { PageNotFoundComponent } from 'page-not-found';
|
||||
import { ProfileComponent } from './profile/profile.component';
|
||||
import { SkillComponent } from './skill/skill.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: 'device', component: DeviceComponent },
|
||||
{ path: 'profile', component: ProfileComponent },
|
||||
{ path: 'skill', component: ProfileComponent },
|
||||
{ path: '', redirectTo: '/profile', pathMatch: 'full' },
|
||||
// { path: '**', component: PageNotFoundComponent }
|
||||
{ path: '**', component: PageNotFoundComponent }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
|
|
@ -6,7 +6,7 @@ import { NgModule } from '@angular/core';
|
|||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { AppComponent } from './app.component';
|
||||
import { GlobalnavModule } from 'globalnav';
|
||||
// import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
|
||||
import { PageNotFoundModule } from 'page-not-found';
|
||||
import { DeviceModule } from './device/device.module';
|
||||
import { ProfileModule } from './profile/profile.module';
|
||||
|
||||
|
@ -20,6 +20,7 @@ import { ProfileModule } from './profile/profile.module';
|
|||
GlobalnavModule,
|
||||
HttpClientModule,
|
||||
DeviceModule,
|
||||
PageNotFoundModule,
|
||||
ProfileModule,
|
||||
AppRoutingModule
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue