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