I'm not able to get .json data using AgGrid community edition. The file resides on a webserver, but it just hangs.
//These two works as expected
this.rowData$ = this.http
.get<any[]>('https://www.ag-grid.com/example-assets/row-data.json');
this.http.get('https://www.ag-grid.com/example-assets/row-data.json').subscribe(data => {
console.log(data.toString);
})
//For some reason exact same .json page on another location does not work
this.http.get('https://localhost/row-data.json').subscribe(data => {
console.log(data.toString);
})
As long as I'm getting .json data from ag-grid.com, everythin works. If I try to get exact same .json data from localhost or any other open webpage domain, the http.get no longer retrives data. It just hangs (no error returned). Any suggestions on how to handle this?
In my opinion AgGrid should be able to retrieve .json data that resides on another server, no questions asked when using this lib? import { HttpClient } from '@angular/common/http';