import { Component , Input , OnInit } from '@angular/core' ; import { Router } from '@angular/router' ; import { ZilliqaService } from '../zilliqa.service' ; @ Component ( { selector : 'app-home' , templateUrl : './home.component.html' , styleUrls : [ './home.component.css' ] } ) export class HomeComponent implements OnInit { constructor ( private router , private zilliqaService ) { this . zilliqaService . resetWallet ( ) ; } ngOnInit ( ) { } createWallet ( ) { this . router . navigate ( [ '/' , 'create' ] ) ; } }