Skip to content

Commit

Permalink
add routes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelknoch committed Mar 25, 2016
1 parent 2841e65 commit db637f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Component} from 'angular2/core';
import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router';
import {LocationComponent} from './LocationComponent/location.component';
import {LocationDetailComponent} from './LocationDetailComponent/locationdetail.component';
import {LocationsComponent} from './LocationsComponent/locations.component';
import {UserComponent} from './UserComponent/user.component';
import {LocationService} from './services/location.service';

Expand All @@ -12,7 +13,8 @@ import {LocationService} from './services/location.service';
})

@RouteConfig([
{path: '/location/:id', name: 'Location', component: LocationComponent},
{path: '/', name: 'Locations', component: LocationsComponent},
{path: '/location/:id', name: 'Location', component: LocationDetailComponent},
{path: '/user/:id', name: 'User', component: UserComponent},
])

Expand Down

0 comments on commit db637f1

Please sign in to comment.