22 lines
463 B
TypeScript
22 lines
463 B
TypeScript
import {Component, Input} from '@angular/core';
|
|
import {NgClass} from '@angular/common';
|
|
|
|
@Component({
|
|
selector: 'app-alert-box',
|
|
imports: [
|
|
],
|
|
templateUrl: './alert-box.html',
|
|
styleUrl: './alert-box.scss'
|
|
})
|
|
export class AlertBox {
|
|
get alertKind(): string {
|
|
return this._alertKind;
|
|
}
|
|
|
|
set alertKind(value: string) {
|
|
this._alertKind = value;
|
|
}
|
|
@Input() public _alertKind: string = "warning";
|
|
@Input() public message: string = "";
|
|
|
|
}
|