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