X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=example-apps%2FPDD%2Ffrontend-src%2Fsrc%2Fapp%2Fapp-routing.module.ts;fp=example-apps%2FPDD%2Ffrontend-src%2Fsrc%2Fapp%2Fapp-routing.module.ts;h=0000000000000000000000000000000000000000;hb=3ed2c61d9d7e7916481650c41bfe5604f7db22e9;hp=89cfd96a329a4fcfa8d7370d53fba686f370d0c2;hpb=e6d40ddb2640f434a9d7d7ed99566e5e8fa60cc1;p=ealt-edge.git diff --git a/example-apps/PDD/frontend-src/src/app/app-routing.module.ts b/example-apps/PDD/frontend-src/src/app/app-routing.module.ts deleted file mode 100644 index 89cfd96..0000000 --- a/example-apps/PDD/frontend-src/src/app/app-routing.module.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { NgModule } from '@angular/core'; -import { Routes, RouterModule, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; -import { HomeComponent } from './home/home.component'; - -import { PcbComponent } from './pcb/pcb.component'; -import { PcbimagesComponent } from './pcbimages/pcbimages.component'; -import { PcboutputimagesComponent } from './pcboutputimages/pcboutputimages.component'; - - - - -const routes: Routes = [ - - { - path: '', - component: HomeComponent - // canActivate: [AuthGuard] - }, - { - path: 'akrainowiki', - component: HomeComponent, - resolve: { - url: 'externalUrlRedirectResolver' - }, - data: { - externalUrl: 'https://wiki.akraino.org/display/AK/ELIOT%3A+Edge+Lightweight+and+IoT+Blueprint+Family?src=contextnavpagetreemode' - } - }, - { - path: 'pcb', - component: PcbComponent, - }, - { - path: 'displayimage', - component: PcbimagesComponent, - }, - { - path: 'results', - component: PcboutputimagesComponent, - }, - { - path: '**', - redirectTo: '' - } -]; - -@NgModule({ - imports: [RouterModule.forRoot(routes, { - scrollPositionRestoration: 'enabled' - })], - exports: [RouterModule], - providers: [ - { - provide: 'externalUrlRedirectResolver', - useValue: (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => - { - // window.location.href = (route.data as any).externalUrl; - window.open((route.data as any).externalUrl); - debugger; - console.log(route.url); - route.url[0].path=""; - - } - } -] -}) -export class AppRoutingModule { }