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} ...