@zhouhaowowtv wrote:
I encountered a problem to http request a rest api in ionic 2.
Here is my code:
this.http.get('http://localhost:3000/news').subscribe(res => { this.data = res.json() console.log(res) })
But got the follow error message
Can anybody advise? Thanks.
Posts: 1
Participants: 1