import { Component , OnInit } from '@angular/core' ; import { Wallet } from '../wallet' ; import { ZilliqaService } from '../../zilliqa.service' ; @ Component ( { selector : 'app-wallethistory' , templateUrl : './wallethistory.component.html' , styleUrls : [ './wallethistory.component.css' ] } ) export class WallethistoryComponent implements OnInit { txHistory = [ ] ; wallet : Wallet ; constructor ( private zilliqaService ) { this . wallet = new Wallet ( ) ; this . txHistory = [ ] ; } ngOnInit ( ) { this . wallet = this . zilliqaService . getWallet ( ) ; } }