17 lines
374 B
TypeScript
17 lines
374 B
TypeScript
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-snackbar',
|
|
|
|
imports: [],
|
|
templateUrl: './snackbar.component.html',
|
|
styleUrl: './snackbar.component.css'
|
|
})
|
|
export class SnackbarComponent {
|
|
@Input() message: string = '';
|
|
@Output() close = new EventEmitter<void>();
|
|
|
|
onClose() {
|
|
this.close.emit();
|
|
}
|
|
} |