Sengi-Windows-MacOS-Linux/src/app/services/navigation.service.ts

18 lines
385 B
TypeScript
Raw Normal View History

2018-09-10 03:55:16 +02:00
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@Injectable()
export class NavigationService {
openColumnEditorSubject = new BehaviorSubject<string>(null);
constructor() { }
openColumnEditor(username: string) {
this.openColumnEditorSubject.next(username);
}
closeColumnEditor() {
this.openColumnEditorSubject.next(null);
}
}