Permalink
Browse files

Step 6.11: Add component to declarations

  • Loading branch information...
1 parent e41f4c6 commit 7acdbfae13287a35e9be4b57c740bf75d3ad2cf1 @kamilkisiela kamilkisiela committed with DAB0mB Sep 21, 2016
Showing with 6 additions and 2 deletions.
  1. +3 −1 client/imports/app/app.routes.ts
  2. +3 −1 client/imports/app/parties/index.ts
@@ -1,7 +1,9 @@
import { Route } from '@angular/router';
import { PartiesListComponent } from './parties/parties-list.component';
+import { PartyDetailsComponent } from './parties/party-details.component';
export const routes: Route[] = [
- { path: '', component: PartiesListComponent }
+ { path: '', component: PartiesListComponent },
+ { path: 'party/:partyId', component: PartyDetailsComponent }
];
@@ -1,7 +1,9 @@
import { PartiesFormComponent } from './parties-form.component';
import { PartiesListComponent } from './parties-list.component';
+import { PartyDetailsComponent } from './party-details.component';
export const PARTIES_DECLARATIONS = [
PartiesFormComponent,
- PartiesListComponent
+ PartiesListComponent,
+ PartyDetailsComponent
];

0 comments on commit 7acdbfa

Please sign in to comment.