I'm new to Angular2 and I'm just curious to know That If I do a subscribe on _showNavBar
or on showNavBarEmitter
both works same(see below code i'm using). is there any difference?
public _showNavBar: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(null);
public showNavBarEmitter: Observable<boolean> = this._showNavBar.asObservable();