Last active
September 28, 2018 02:21
-
-
Save sawyerbutton/8ee3d19a22dedc3ea936147ca5240e64 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.applicationService.getApplicationTableData().subscribe(data => { | |
| const tempList = []; | |
| data.forEach((item, index) => { | |
| const countLink = item.applicationCount; | |
| this.applicationService.getApplicationCountData(countLink).subscribe(count => { | |
| tempList.push({ | |
| key: (index + 1).toString(), | |
| linkUrl: item.linkUrl, | |
| applicationName: item.applicationName, | |
| // applicationCount: item.applicationCount, | |
| applicationCount: count, | |
| model: item.model, | |
| type: item.type, | |
| }); | |
| if (index === data.length - 1) { | |
| this.applicationTableData = tempList; | |
| this.loadingForTable = true; | |
| this.loading = false; | |
| } | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let tempList = []; | |
| data.forEach((item, index) => { | |
| const countLink = item.linkUrl; | |
| // this.applicationService.getApplicationCountData(countLink).subscribe(count => { | |
| // tempList.push({ | |
| // key: (index + 1).toString(), | |
| // linkUrl: item.linkUrl, | |
| // applicationName: item.applicationName, | |
| // // applicationCount: item.applicationCount, | |
| // applicationCount: count, | |
| // model: item.model, | |
| // type: item.type, | |
| // }); | |
| // if (index === data.length - 1) { | |
| // this.applicationTableData = tempList; | |
| // this.loading = false; | |
| // } | |
| // }); | |
| tempList.push({ | |
| key: (index + 1).toString(), | |
| linkUrl: item.linkUrl, | |
| applicationName: item.applicationName, | |
| // applicationCount: item.applicationCount, | |
| applicationCount: item.applicationCount, | |
| model: item.model, | |
| type: item.type, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment