import { Component , OnInit } from '@angular/core' ; import { ActivatedRoute , Router } from '@angular/router' ; import { Session } from '../../../../services/session' ; @ Component ( { selector : 'm-settingsV2__referrals' , templateUrl : 'referrals.component.html' , } ) export class SettingsV2ReferralsComponent implements OnInit { constructor ( public session , public route , public router ) { } ngOnInit ( ) { if ( ! this . session . isLoggedIn ( ) ) { return this . router . navigate ( [ '/login' ] ) ; } } }