English, asked by riyaz4918, 1 year ago

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 aryan9467
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 Tanujasingh12
0

hcbvkhcjcjfjvl ljvugihifulvih

subscribe this channel .....


riyaz4918: What?
Tanujasingh12: riyaz ....
Tanujasingh12: -_-
Similar questions