import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'of-download',
  templateUrl: './download.component.html',
})
export class DownloadComponent implements OnInit {

  @Input() index;
  @Output() select = new EventEmitter();

  constructor(
  ) { }

  ngOnInit() {
  }

  onChange(event) {
    this.select.emit(event.index);
  }
}
