ahmed elbarbary

ahmed elbarbary

  • 1.1k
  • 892
  • 37.2k

How to check in component.html if column type=1 display lab

May 21 2020 2:47 AM
I have object name ReportControl I face issue I cannot check value related to this object
if have column type 1 then display label active else display label not active on reportcomponent.html
data of object ReportControl as below
  1. {"reportId":2028,"fieldName":"offilneURL","reportStatus":"HiddenColumn","columnType":1}  
on reportcomponent.ts
this._displayreport.GetReportControl(param2).subscribe((res: any) => {
  1. this.ReportControl = res;  
  2. console.log("report control is" + JSON.stringify(this.ReportControl) );  
  3. });  
on service.ts
  1. GetReportControl(id : string){  
  2. return this.http.get<any[]>(this.url+ 'report/GetAllReportControl/id=' + id)  
  3. .map(res=>res);  
  4. }  
reportcomponent.html
i need to check if column type =1 then display label with text active
else display label with text not active

Brought to you by: