TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ahmed elbarbary
NA
1.6k
278.4k
How to return company name from service json ?
Jan 1 2020 7:04 AM
cannot return company name from json
i have company service as below :
getCompanyDetails(companyID) {
return
this
.http.get(
this
.rootURL + companyID);
}
This service above return following json :
{
"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"
}
I need to return
value ASE Industrial Holding Co., Ltd
to attribute CompanyName
companyname: string;
this
.companyService.getCompanyDetails(CompanyID)
this
.companyname=???????????????
how to call service to return value of CompanyName based on CompanyId
Reply
Answers (
6
)
how to fill locations with colored circles with angular 7 ?
How to display flag for country based on code or name ?