File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/src/app/services/tab.service.ts
import { Injectable } from '@angular/core';
import { Platform } from '@ionic/angular';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class TabService {
private tabChangeObserver: any;
public tabChange: any;
constructor(private platform: Platform) {
this.tabChangeObserver = null;
this.tabChange = Observable.create(observer => {
this.tabChangeObserver = observer;
});
}
public changeTabInContainerPage(tab: string) {
this.tabChangeObserver.next(tab);
}
}