Projekt

Obecné

Profil

Stáhnout (1.01 KB) Statistiky
| Větev: | Tag: | Revize:
1
import { NgModule } from '@angular/core';
2
import { Routes, RouterModule } from '@angular/router';
3
import { HomeComponent } from './components/pages/home/home.component';
4
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
import { BrowseDetailsComponent } from './components/pages/browse/browse-details/browse-details.component';
9

    
10

    
11
const routes: Routes = [
12
  { path: '', component: HomeComponent },
13
  { path: 'search', component: SearchComponent },
14
  { path: 'browse', component: BrowseComponent },
15
  { path: 'browse/:img_name', component: BrowseDetailsComponent },
16
  { path: 'upload', component: UploadComponent },
17
  { path: 'help', component: HelpComponent },
18
];
19

    
20
@NgModule({
21
  imports: [RouterModule.forRoot(routes)],
22
  exports: [RouterModule]
23
})
24
export class AppRoutingModule { }
(1-1/6)