load() {
if (this.data) {
// already loaded data
return Promise.resolve(this.data);
}
// don't have the data yet
return new Promise(resolve => {
// We're using Angular Http provider to request the data,
// then on the response it'll map the JSON data to a parsed JS object.
// Next we process the data and resolve the promise with the new data.
this.http.get('http://api.steampowered.com/ISteamNews/GetNewsForApp/v0002/?appid=437220&count=10&format=json')
.map(res => res.json())
.subscribe(data => {
// we've got back the raw data, now generate the core schedule data
// and save the data for later reference
this.data = data;
resolve(this.data);
});
});
Sorry I am having the same issue here.
i have included the proxy in my ionic.config.json, but i ma still having same issue,
My question is after I put the proxy in my ionic.config.json file , how do i use it in my http request ?
i meant how do I call the url in my http request, Will I be writing my external api url like the below