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=???????????????
Venkat MungariPosted Jan 2, 2020, 11:25 AM
ahmed elbarbaryPosted Jan 1, 2020, 8:09 AM
ahmed elbarbaryPosted Jan 1, 2020, 7:52 AM
Jaimin ShethiyaPosted Jan 1, 2020, 7:48 AM
in your mention json the company name is there.
ahmed elbarbaryPosted Jan 1, 2020, 7:44 AM
Jaimin ShethiyaPosted Jan 1, 2020, 7:36 AM
example:
if(compDetail){