import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { FileInfo } from '../../models/file-info.json'; import { NGXLogger } from 'ngx-logger'; @Component({ selector: 'ucap-chat-message-box-attach-file', templateUrl: './attach-file.component.html', styleUrls: ['./attach-file.component.scss'] }) export class AttachFileComponent implements OnInit { @Input() fileInfo: FileInfo; @Output() save = new EventEmitter(); constructor(private logger: NGXLogger) {} ngOnInit() {} onClickSave() { this.save.emit('save'); } onClickSaveAs() { this.save.emit('saveAs'); } }