Skip to content

Commit

Permalink
Step 10.11: Added join/signin component to the router
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and Dotan Simha committed Nov 22, 2016
1 parent 96eaf11 commit 66c8506
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/imports/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import {ModuleWithProviders} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {ListShowComponent} from "./components/list-show.component";
import {ListRedirectorComponent} from "./components/list-redirector.component";
import {JoinComponent} from "./components/join.component";
import {SigninComponent} from "./components/signin.component";

const appRoutes: Routes = [
{path: '', component: ListRedirectorComponent},
{path: 'lists/:_id', component: ListShowComponent}
{path: 'lists/:_id', component: ListShowComponent},
{path: 'join', component: JoinComponent},
{path: 'signin', component: SigninComponent}
];

export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);

0 comments on commit 66c8506

Please sign in to comment.