Closed teosbb closed 9 months ago
This is a special case. It can't be fixed sooner. PR would appreciated.
This is working code.
import { Component, OnDestroy } from '@angular/core';
import { EntityService } from './entity-service';
import { NavbarService } from './navbar-service';
@Component({template: ''})
export class EntitiesListComponent implements OnDestroy {
entities = this.entityService.Entities;
componentError: string;
private componentDestoryed = new Subject();
private setComponentError = (error: string) => {
// throwError(this.componentError = error);
this.componentError = error;
throw error;
}
constructor(
private entityService: EntityService,
private navbarService: NavbarService
) {
this.navbarService.navbarSubtitle.next('Title');
this.initializeErrors();
}
}