import {Injectable} from '@angular/core';
import {BehaviorSubject, Subscription} from 'rxjs';

@Injectable()
export class AppService {

    private themeSource:BehaviorSubject<string> = new BehaviorSubject('dark');
    public theme = this.themeSource.asObservable();

    public setTheme(value: string){
        this.themeSource.next(value);
    }
}
