Enabling tags for tasks

So far, the tag-management system that we created in Chapter 7, Components for User Experience, only supports project tags. As we have now created a detail view for tasks, it would be nice to also support task tags directly in our tagging system. Our tagging system is quite flexible, and we can implement new tags with very little effort.

Let's modify our tags service, located in src/app/tags/tags.service.ts, in order to enable tags for our tasks:

import {Injectable} from '@angular/core';import {ProjectService} from '../project/project.service';import {Project, Tag, Task} from '../model';import {Observable, of, combineLatest} from 'rxjs/Observable';import {map} from 'rxjs/operators';import {limitWithEllipsis, replaceAll} ...

Get Mastering Angular Components now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.