import {Component, Input} from '@angular/core'; import {HelperFunctions} from "../../utils/HelperFunctions.class"; @Component({ selector: 'relatedTo', template: `
Related to
{{item['labelContext']}} {{item['labelCategory']}} : {{item['labelConcept']}} {{item['labelContext']}} {{item['labelCategory']}} : {{item['labelConcept']}}
View less
View more
` }) 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(); } }