diff --git a/src/app/view/home/block-detail-list/block-detail-list.component.ts b/src/app/view/home/block-detail-list/block-detail-list.component.ts index 5cd7d21..2b9c28e 100644 --- a/src/app/view/home/block-detail-list/block-detail-list.component.ts +++ b/src/app/view/home/block-detail-list/block-detail-list.component.ts @@ -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()