Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 1 | import { NgModule } from '@angular/core'; |
| 2 | import { RouterModule, Routes } from '@angular/router'; |
| 3 | |
| 4 | import { HomeComponent } from './home/home.component'; |
| 5 | import { MainComponent } from './main/main.component'; |
| 6 | |
| 7 | const routes: Routes = [ |
| 8 | { |
| 9 | path: '', |
| 10 | redirectTo: '/home', |
| 11 | pathMatch: 'full' |
| 12 | }, |
| 13 | { |
| 14 | path: 'home', |
| 15 | component: HomeComponent |
| 16 | }, |
| 17 | { |
| 18 | path: 'main/:contextType/:uuid/:version/:mcid', |
| 19 | component: MainComponent |
| 20 | } |
| 21 | ]; |
| 22 | |
| 23 | @NgModule({ |
| 24 | imports: [RouterModule.forRoot(routes, { useHash: true })], |
| 25 | exports: [RouterModule] |
| 26 | }) |
| 27 | export class AppRoutingModule {} |