import { HttpClient } from ‘@angular/common/http’;
constructor(private httpClient: HttpClient);
this.httpClient.get('https://www.ramanujan.in/RAMANUJAN_GURUCOOL/RAMANUJAN_APP/get_fleet_expense_month.php?Database=’+Db+’&MonthAcademicYear=’+this.AcademicYear+’&MonthBusNo=’+this.BusNo) .subscribe((data) =>{ console.log(data); }, error => { console.log(error); alert(JSON.stringify(error)); }); this one is working on device
this.httpClient.get('https://www.ramanujan.in/RAMANUJAN_GURUCOOL/RAMANUJAN_APP/get_fleetquarterlyincome.php?Db=’+Db+’&Year=’+this.AcademicYear+’&BusNo=’+this.BusNo) .subscribe((res)=>{ console.log(res); }, error => { console.log(error); }); this one is not working on device i have attached the image of the error i am getting