cannot return company name from json
i have company service as below :
- getCompanyDetails(companyID) {
- return this.http.get(this.rootURL + companyID);
- }
- {"CompanyID":0,"CompanyName":"ASE Industrial Holding Co., Ltd.","CountryName":"Taiwan","LogoSourceUrl":null,"MainWebSite":"http://www.aseglobal.com/","CompanyType":"Public","Taxonomy":"Test \u0026 Assembly","RevenueYear":"","TotalRevenue":"","YearToYearGrowth":"","NumberOfEmployees":"1017","Score":"","NumberMergerAndAcquisitions":"3"}
to attribute CompanyName
- companyname: string;
- this.companyService.getCompanyDetails(CompanyID)
- this.companyname=???????????????

Jaimin ShethiyaRank #177 · 13.7K reputationPosted Jan 1, 2020, 2:36 AM EST
example:
if(compDetail){
ahmed elbarbaryRank #1,060 · 1.8K reputationPosted Jan 1, 2020, 2:44 AM EST
Jaimin ShethiyaRank #177 · 13.7K reputationPosted Jan 1, 2020, 2:48 AM EST
in your mention json the company name is there.
ahmed elbarbaryRank #1,060 · 1.8K reputationPosted Jan 1, 2020, 2:52 AM EST
ahmed elbarbaryRank #1,060 · 1.8K reputationPosted Jan 1, 2020, 3:09 AM EST
Venkat MungariRank #1,414 · 1.2K reputationPosted Jan 2, 2020, 6:25 AM EST