seconds updated

This commit is contained in:
root 2019-08-23 16:21:57 +05:30
parent 1dc51f6f03
commit 2588ed14bc

View File

@ -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()