import {Component, Input} from '@angular/core';
import {HelperFunctions} from "../../utils/HelperFunctions.class";
@Component({
selector: 'relatedTo',
template: `
Communities
{{item['labelContext']}}
{{item['labelCategory']}}
: {{item['labelConcept']}}
{{item['labelContext']}}
{{item['labelCategory']}}
: {{item['labelConcept']}}
`
})
export class RelatedToComponent {
@Input() contexts: { "labelContext": string, "labelCategory": string, "labelConcept": string, "inline": boolean }[];
public threshold: number = 5;
public showNum: number = 5;
constructor() {
}
ngOnInit() {
}
public scroll() {
HelperFunctions.scroll();
}
}