seconds updated
This commit is contained in:
parent
1dc51f6f03
commit
2588ed14bc
@ -66,6 +66,7 @@ export class BlockDetailListComponent implements OnInit {
|
||||
if (res["status"] == 200) {
|
||||
// var hasharray = res.response;
|
||||
this.latestblockdetail = res.response;
|
||||
setInterval(() => this.incrementseconds(), 1000);
|
||||
this.latestblockdetail["blink"] = false;
|
||||
resolve();
|
||||
}
|
||||
@ -75,6 +76,10 @@ export class BlockDetailListComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
incrementseconds(){
|
||||
this.latestblockdetail.letest_block_num = this.latestblockdetail.letest_block_num + 1;
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
this.latestblockdetailObservable
|
||||
? this.latestblockdetailObservable.unsubscribe()
|
||||
|
Loading…
Reference in New Issue
Block a user