import { Component , OnInit } from '@angular/core' ; import { Router } from '@angular/router' ; import { GlobalService } from '@shared/services/global.service' ; import { Animations } from '@shared/animations/animations' ; @ Component ( { selector : 'setup-component' , templateUrl : './setup.component.html' , styleUrls : [ './setup.component.scss' ] , animations : Animations . fadeIn } ) export class SetupComponent implements OnInit { constructor ( private router , private globalService ) { } public sidechainEnabled : boolean ; ngOnInit ( ) { this . sidechainEnabled = this . globalService . getSidechainEnabled ( ) ; } public onCreateClicked ( ) { this . router . navigate ( [ 'setup/create' ] ) ; } public onRecoverClicked ( ) { this . router . navigate ( [ 'setup/recover' ] ) ; } public onBackClicked ( ) { this . router . navigate ( [ 'login' ] ) ; } }