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 |
Manor, Yanir (ym903w) | a0c5a22 | 2018-10-21 11:00:42 +0300 | [diff] [blame^] | 20 | }, |
| 21 | { |
| 22 | path: 'main/:contextType/:uuid/:version/:mcid/:submitted', |
| 23 | component: MainComponent |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 24 | } |
| 25 | ]; |
| 26 | |
| 27 | @NgModule({ |
| 28 | imports: [RouterModule.forRoot(routes, { useHash: true })], |
| 29 | exports: [RouterModule] |
| 30 | }) |
| 31 | export class AppRoutingModule {} |