O'Reilly logo

Mastering Angular Components by Gion Kunz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating the task list container

That's it for our project component. However, our task list container is still implemented in such a way that it deals with all available tasks and does not know anything about projects. Let's change that by modifying our component class located in src/app/container/task-list-container.component.ts. Changes are highlighted in bold while irrelevant parts are hidden under an ellipsis character:

…import {Project, Task, TaskListFilterType} from '../../model';import {map, switchMap, take} from 'rxjs/operators';import {ProjectService} from '../../project/project.service';@Component({  selector: 'mac-task-list-container',  templateUrl: './task-list-container.component.html',  encapsulation: ViewEncapsulation.None,

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required