import {Component, Input} from '@angular/core';
@Component({
selector: 'showSubjects',
template: `
0) ||
(otherSubjects != undefined && otherSubjects.size > 0) ||
(classifiedSubjects != undefined && classifiedSubjects.size > 0)">
Subject:
0"> {{subjects.join(" | ")}}
0">
{{key}}: {{classifiedSubjects.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());
}
}