import {Component, Input} from '@angular/core'; import {HelperFunctions} from "../../utils/HelperFunctions.class"; // NOT USED @Component({ selector: 'publishedIn', template: `
Published in
{{key}} [{{i+1}}] {{key}} {{key}}
View less
View more
` }) // NOT USED export class PublishedInComponent { public threshold: number = 5; public showNum: number = 5; //key is name @Input() publishedIn: Map; public showAll: boolean = false; constructor () {} ngOnInit() {} public scroll() { HelperFunctions.scroll(); } public getKeys( map) { return Array.from(map.keys()); } }