Projekt

Obecné

Profil

Stáhnout (863 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 64f28c6d Ondřej Váně
import { NgModule } from '@angular/core';
2
import { Routes, RouterModule } from '@angular/router';
3 e63c2d6c castic96
import { HomeComponent } from './components/pages/home/home.component';
4 3507cb4d Ondřej Váně
import { SearchComponent } from './components/pages/search/search.component';
5
import { BrowseComponent } from './components/pages/browse/browse.component';
6
import { UploadComponent } from './components/pages/upload/upload.component';
7
import { HelpComponent } from './components/pages/help/help.component';
8 64f28c6d Ondřej Váně
9
10 e63c2d6c castic96
const routes: Routes = [
11 3507cb4d Ondřej Váně
  { path: '', component: HomeComponent },
12
  { path: 'search', component: SearchComponent },
13
  { path: 'browse', component: BrowseComponent },
14
  { path: 'upload', component: UploadComponent },
15
  { path: 'help', component: HelpComponent },
16 e63c2d6c castic96
];
17 64f28c6d Ondřej Váně
18
@NgModule({
19
  imports: [RouterModule.forRoot(routes)],
20
  exports: [RouterModule]
21
})
22
export class AppRoutingModule { }