Integrating tag selection in project comments

Since the editor component now relies on a list of available tags to be passed as input, we need to apply some changes to our project comment components.

Let's start with the project comments container component, located in src/app/container/project-comments-container/project-comments-container.component.ts. The ellipsis character is hiding irrelevant code parts, while effective changes are in bold:

…import {Comment, CommentUpdate, Project, Tag, User} from '../../model';…import {TagsService} from '../../tags/tags.service';@Component({  …})export class ProjectCommentsContainerComponent {  …  tags: Observable<Tag[]>;  constructor(private projectService: ProjectService, private userService: UserService, ...

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.