import { Component } from '@angular/core'; import { Observable } from 'rxjs'; import {AlertService, IAlert} from '../services/alert.service'; @Component({ selector: 'app-alert', template: `