import {Component, Input} from '@angular/core';
@Component({
selector: 'showSubjects',
template: `
0" class="uk-text-small">
Subjects by Vocabulary:
0) || (otherSubjects && otherSubjects.size > 0)" class="uk-text-small"
[class.uk-margin-top]="classifiedSubjects && classifiedSubjects.size > 0">
Subjects:
0">{{subjects.join(', ')}}
0) && (otherSubjects && otherSubjects.size > 0)">,
0">
0">
{{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());
}
}