Update with NPM
Fix css and function name
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import { AddAction } from '../models/add-action.enum';
|
||||
|
||||
|
||||
@Injectable()
|
||||
export class ServiceComm {
|
||||
private componentTitleSource = new BehaviorSubject<string>('');
|
||||
componentTitle = this.componentTitleSource.asObservable();
|
||||
|
||||
private refreshRequestSource = new BehaviorSubject<AddAction>(AddAction.None);
|
||||
refreshRequest = this.refreshRequestSource.asObservable();
|
||||
|
||||
constructor() { }
|
||||
|
||||
updatedComponentTitle(title: string) {
|
||||
UpdatedComponentTitle(title: string) {
|
||||
this.componentTitleSource.next(title);
|
||||
}
|
||||
|
||||
RefreshData(refreshAfter: AddAction) {
|
||||
this.refreshRequestSource.next(refreshAfter);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user