import { Subject } from 'rxjs'; import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class LanguageTextboxService { private activePane = null; hide$ = new Subject(); constructor() {} setActivePane( p: any ) { if (this.activePane && this.activePane != p) { this.activePane.hideDropDownPanel(); this.activePane = null; } this.activePane = p; } hide() { this.hide$.next(); } }