import {Component, Input} from '@angular/core'; import {HelperFunctions} from "../../utils/HelperFunctions.class"; @Component({ selector: 'availableOn', template: `
Download from
{{available.downloadName}} [{{(i+1) | number}}] {{available.downloadName}} via {{available.collectedName}} ({{available.type}}, {{available.year}})
View less
View more
` }) export class AvailableOnComponent { @Input() availableOn: { "downloadName": string, "downloadUrl": string[], "collectedName": string, "collectedId": string, "accessMode": string[], "bestAccessMode": string, "type": string, "year":string }[]; public threshold: number = 5; public showNum: number = 5; constructor () {} ngOnInit() {} public scroll() { HelperFunctions.scroll(); } }