import {Component, Input} from '@angular/core'; @Component({ selector: 'showSubjects', template: `
Subjects
{{key}}: {{subject}}
free text keywords: {{subjects.join(', ')}} , {{otherSubjects.get(key).join(', ')}} ,
` }) export class ShowSubjectsComponent { @Input() subjects: string[]; @Input() otherSubjects: Map; @Input() classifiedSubjects: Map; // private showClassifiedSbj: boolean = false; constructor() { } ngOnInit() { } public getKeys(map) { return Array.from(map.keys()); } }