// Angular imports import { NgModule } from '@angular/core'; import { Routes, RouterModule, UrlHandlingStrategy } from '@angular/router'; import { HashLocationStrategy, LocationStrategy } from '@angular/common'; import { HybridUrlHandlingStrategy } from './HybridUrlHandlingStrategy'; // import { CleanCacheComponent } from './components/cleanCache/clean-cache.component'; // import { NyttMaeklarObjektComponent } from './components/maeklarObjekt/nyttMaeklarObjekt/nytt-maeklar-objekt.component'; // Root routing // Todo - look into how to handle '**' routes const rootRoutes: Routes = [ /* { path: 'CleanCache', component: CleanCacheComponent, pathMatch: 'full' }, { path: 'NyttObjekt', component: NyttMaeklarObjektComponent, pathMatch: 'full' } */ // { // path: '', redirectTo: '/Saljdriv', pathMatch: 'full' // } // { // path: '**', component: PageNotFound, pathMatch: 'full' // } ]; // OBS, pga bugg i hybrida applösningar, körs nu routingen för alla komponenter i ajs. Kolla mainModule.ts för mer info @NgModule({ imports: [RouterModule.forRoot(rootRoutes)], exports: [RouterModule], providers: [ // routeParamsProvider // Only needed when a controller is downgraded and using the ajs routing { provide: LocationStrategy, useClass: HashLocationStrategy }, { provide: UrlHandlingStrategy, useClass: HybridUrlHandlingStrategy } ] }) export class AppRoutingModule { }