import { Component , OnInit } from '@angular/core' ; import { DevcenterService } from './devcenter.service' ; import { DataService } from 'src/app/core/services/data.service' ; @ Component ( { selector : 'app-devcenter' , templateUrl : './devcenter.page.html' , styleUrls : [ './devcenter.page.scss' ] , } ) export class DevcenterPage implements OnInit { selectedTab = 0 ; get isDev ( ) { return false ; } get developerInfo ( ) { return this . devcenterService . developerInfo ; } constructor ( private devcenterService , private dataService ) { } subscription ; ngOnInit ( ) { this . subscription = this . dataService . userDataLoader . subscribe ( loaded => { if ( loaded ) { this . devcenterService . getUserLevel ( ) ; } } ) ; } ngOnDestroy ( ) { this . subscription . unsubscribe ( ) ; } loaded ; ngAfterViewInit ( ) { } selectTab ( tab ) { this . selectedTab = tab ; } }