Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (20 sloc) 603 Bytes
import {ModuleWithProviders} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {PhotoListComponent} from './photo-list/photo-list.component';
import {PhotoUploadComponent} from './photo-upload/photo-upload.component';
const appRoutes: Routes = [
{
path: 'photos',
component: PhotoListComponent
},
{
path: 'photos/new',
component: PhotoUploadComponent
},
{
path: '',
redirectTo: '/photos',
pathMatch: 'full'
}
];
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);