import { Component , EventEmitter , OnInit } from '@angular/core' ; import { Session } from '../../../../services/session' ; import { Client } from '../../../../services/api' ; import { Router } from '@angular/router' ; @ Component ( { selector : 'm-settingsV2__subscriptionTiers' , template : `` , } ) export class SettingsV2SubscriptionTiersComponent implements OnInit { isSaving = false ; isSaved = false ; triggerSave = new EventEmitter ( true ) ; error : string ; constructor ( public session , public client , private router ) { } ngOnInit ( ) { const username = this . session . getLoggedInUser ( ) . username ; this . router . navigate ( [ `/${ username }/shop` ] , { skipLocationChange : true } ) ; } }