diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-11-10 16:29:10 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-11-10 16:36:12 +0100 |
commit | fb2f6b918beb0a994ad304bfd678ef0c5c562210 (patch) | |
tree | 21c64ee76658b2e68559891ba317cb893afd2d44 /webapp/src/app/app-routing.module.ts | |
parent | c51d5034d527578da70bdd41b9ce13f28455c598 (diff) |
Moved Dashboad webapp on Angular 5 !
Webapp loading time decreased from 2.7s to 1.5sec !
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'webapp/src/app/app-routing.module.ts')
-rw-r--r-- | webapp/src/app/app-routing.module.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/webapp/src/app/app-routing.module.ts b/webapp/src/app/app-routing.module.ts new file mode 100644 index 0000000..36629de --- /dev/null +++ b/webapp/src/app/app-routing.module.ts @@ -0,0 +1,18 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; +import { HomeComponent } from './home/home.component'; +import { ConfigComponent } from './config/config.component'; +import { DevelComponent } from './devel/devel.component'; + +const routes: Routes = [ + { path: 'config', component: ConfigComponent, data: { title: 'Config' } }, + { path: 'home', component: HomeComponent, data: { title: 'Home' } }, + { path: 'devel', component: DevelComponent, data: { title: 'Build & Deploy' } }, + { path: '**', component: HomeComponent } +]; + +@NgModule({ + imports: [RouterModule.forRoot(routes)], + exports: [RouterModule] +}) +export class AppRoutingModule { } |