Skip to Main Content
Mastering Angular Components - Second Edition
book

Mastering Angular Components - Second Edition

by Gion Kunz
July 2018
Intermediate to advanced content levelIntermediate to advanced
402 pages
9h 35m
English
Packt Publishing
Content preview from Mastering Angular Components - Second Edition

Child routes for project details

Within this section, we're going to use the router for navigating the detail views on our projects. We currently have two detail views on our projects:

  • Project tasks view using the task list container component
  • Project comments view using the project comments container component

We also need to make sure that we're able to activate the sub-views using our tabbed interface on projects. Our current solution is to store the activated tab within the project container component. Based on that, we're deciding which detail view to show within the template of our project component. There, we're using a simple ngIf directive in order to determine which of the two child container components to show.

Let's start with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Angular, 2nd Edition

Learning Angular, 2nd Edition

Brad Dayley, Brendan Dayley, Caleb Dayley
Essential Angular

Essential Angular

Victor Savkin, Jeff Cross
Pro Angular 6

Pro Angular 6

Adam Freeman

Publisher Resources

ISBN: 9781788293532Supplemental Content