Property 'subscribe' does not exist on type 'void'.ts(2339) any....
Why i'm getting this error on my code?
Below are the my code,
CompanyList() {
this.companyService.getCompanyList().subscribe(result => {
this.companyList = result;
this.companyList = this.companyList.map(data => {
return { compCode: data.compCode, compName: data.Company.compName };
});
});
};
Answers
Answered by
0
)Property 'subscribe' does not exist on type 'void'.ts(2339) any....
Why i'm getting this error on my code?
Below are the my code,
CompanyList() {
this.companyService.getCompanyList().subscribe(result => {
this.companyList = result;
this.companyList = this.companyList.map(data => {
return { compCode: data.compCode, compName: data.Company.compName };
});
});
};
Answered by
0
hcbvkhcjcjfjvl ljvugihifulvih
subscribe this channel .....
riyaz4918:
What?
Similar questions