- add dashboard and angular routing files
- npm updates - changes in webpack.common.js
This commit is contained in:
parent
72cc5241af
commit
220944b115
17 changed files with 377 additions and 105 deletions
22
src/app/app-routing.module.ts
Normal file
22
src/app/app-routing.module.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
//neu
|
||||
import { DashboardComponent } from './dashboard/dashboard.component';
|
||||
import { MapComponent } from './map/map.component';
|
||||
// import { HeroDetailComponent } from './hero-detail/hero-detail.component';
|
||||
|
||||
// const routes: Routes = [];
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' },
|
||||
{ path: 'dashboard', component: DashboardComponent },
|
||||
// { path: 'detail/:id', component: HeroDetailComponent },
|
||||
{ path: 'map', component: MapComponent }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class AppRoutingModule { }
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue