This commit is contained in:
Prema 2019-08-30 16:32:28 +05:30
commit dfd3a929ec
2 changed files with 5 additions and 3 deletions

View File

@ -59,6 +59,8 @@ export class LatestblocksComponent implements OnInit {
this.lastblock = res.response.BlockchainBlockResult[0].blockchain_block_height; this.lastblock = res.response.BlockchainBlockResult[0].blockchain_block_height;
//console.log(this.lastblock); //console.log(this.lastblock);
}else{
this.block.clear();
} }
} }
}, },
@ -83,7 +85,7 @@ export class LatestblocksComponent implements OnInit {
this.DifferentList.sort((a, b) => (a.blockchain_block_height) - (b.blockchain_block_height)); this.DifferentList.sort((a, b) => (a.blockchain_block_height) - (b.blockchain_block_height));
this.FirstPageListData = this.Merged_data;
this.DifferentList.forEach(DifferentList_dub => { this.DifferentList.forEach(DifferentList_dub => {
this.createBlock(DifferentList_dub); this.createBlock(DifferentList_dub);
}); });
@ -103,7 +105,7 @@ export class LatestblocksComponent implements OnInit {
} }
public createBlock(DifferentList) { public createBlock(DifferentList) {
this.FirstPageListData.push(DifferentList); //this.FirstPageListData.push(DifferentList);
const blockFactory = this.resolver.resolveComponentFactory( const blockFactory = this.resolver.resolveComponentFactory(
BlockAppendComponent, BlockAppendComponent,
); );

View File

@ -10,7 +10,7 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "es5",
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
], ],