import { Component, OnInit } from '@angular/core'; import { StateService } from '../../services/state.service'; import { Observable, merge, of } from 'rxjs'; @Component({ selector: 'app-preview-title', templateUrl: './preview-title.component.html', styleUrls: [], }) export class PreviewTitleComponent implements OnInit { network$: Observable; constructor( public stateService: StateService, ) { } ngOnInit() { this.network$ = merge(of(''), this.stateService.networkChanged$); } }