Guest User

Untitled

a guest
Oct 18th, 2017
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. export let ARTICLE_ROUTES: Routes = [
  2. {
  3. path: 'article/:id', component: ArticleComponent,
  4. children: [
  5. {path: '', component: ArticleContentComponent, pathMatch: 'full'},
  6. {path: ':detailId', component: ArticleContentComponent}
  7. ]
  8. }
  9. ];
  10.  
  11. <a [routerLink]="[section.id]">{{section.title}}</a>
  12.  
  13. this.router.navigate([sectionId], { relativeTo: this.route});
  14.  
  15. this._activatedRoute.params.subscribe(p => this.loadMovie(p["id"]));
Add Comment
Please, Sign In to add comment