20 lines
545 B
TypeScript
20 lines
545 B
TypeScript
import {Component, EventEmitter, HostListener, OnInit, Output} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-contraindications-modal',
|
|
templateUrl: './contraindications-modal.component.html',
|
|
styleUrls: ['./contraindications-modal.component.scss']
|
|
})
|
|
export class ContraindicationsModalComponent implements OnInit {
|
|
|
|
@Output() onClose: EventEmitter<void> = new EventEmitter();
|
|
|
|
@HostListener('document:keydown.escape', ['$event']) onKeydownHandler(event: KeyboardEvent) {
|
|
this.onClose.emit();
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
}
|
|
|
|
}
|