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