import { Injectable } from '@angular/core'; import { Observable, Subject } from 'rxjs'; /** * service to make DatatableComponent aware of changes to * input bindings of DataTableColumnDirective */ @Injectable() export class ColumnChangesService { private columnInputChanges = new Subject(); get columnInputChanges$(): Observable { return this.columnInputChanges.asObservable(); } onInputChange(): void { this.columnInputChanges.next(); } }