github.com/in4it/ecs-deploy@v0.0.42-0.20240508120354-ed77ff16df25/webapp/src/app/directives/alert.component.ts (about)

     1  import { Component, OnInit } from '@angular/core';
     2  
     3  import { AlertService } from '../services/index';
     4  
     5  @Component({
     6      selector: 'alert',
     7      templateUrl: 'alert.component.html'
     8  })
     9  
    10  export class AlertComponent {
    11      message: any;
    12  
    13      constructor(private alertService: AlertService) { }
    14  
    15      ngOnInit() {
    16          this.alertService.getMessage().subscribe(message => { this.message = message; });
    17      }
    18  }