【发布时间】:2017-11-25 00:18:02
【问题描述】:
这是我从服务传递到组件的响应,我应该在其中向 UI 显示每个值。我需要解析每个值并存储到一个变量中。
[{"profileId":"000234","profileName":"kofi prfl","regionName":"NA ","fileType":"GRRCN","fileVersion":"1.01","fileFreq":"D01","fileFormat":"FIX","emptyFile":"N","cardMask":"Y","uprInd":"N","dataLevel":"01"}]
this.profileDetailsService.getProfileDetails(this.idDisplay)
.subscribe(profileResponse => {
// Should parse the profileResponse here....
this.searchResult = profileResponse;
this.spinnerService.hide();
},
error => {
this.spinnerService.hide();
this.showError();
}
);
profileId、profileName、regionName等值如何分隔?
【问题讨论】:
-
您可以发布更多代码吗?我可以看看你们的服务、模板和组件吗?
标签: json angular object typescript