mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 01:47:41 +00:00
20 lines
405 B
TypeScript
20 lines
405 B
TypeScript
import { Component, input, output } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-modal-shell',
|
|
templateUrl: './modal-shell.html',
|
|
styleUrl: './modal-shell.scss',
|
|
})
|
|
export class ModalShell {
|
|
readonly title = input.required<string>();
|
|
readonly closed = output<void>();
|
|
|
|
onOverlayClick() {
|
|
this.closed.emit();
|
|
}
|
|
|
|
onClose() {
|
|
this.closed.emit();
|
|
}
|
|
}
|