Ionic2 http request not firing


Hello I have been trying to implement an http request wi ionic2 (yep angular2) but it seems it doesn’t fire up, this is my code:

let body = JSON.stringify(this.usercoin); let headers = new Headers({ 'Content-Type': 'application/json' }); let options = new RequestOptions({ headers: headers }); return this.http.get('http://localhost:3000/usuarios/loginMobile.json') .map(res => res.json()) .catch(this.handleError);

Does anybody have an example of http request with beta7?



Observables (what http service returns) are lazy. You need to subscribe() to the observable to actually execute it.