I'm new to Angular2, and I'm just curious to know that if I subscribe to _showNavBaror to showNavBarEmitter, both work the same way (see below the code I'm using). is there any difference
public _showNavBar: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(null);
public showNavBarEmitter: Observable<boolean> = this._showNavBar.asObservable();
vikas source
share