login(){
var headers = new Headers();
headers.append(‘Content-Type’, ‘application/x-www-form-urlencoded’ );
let options = new RequestOptions({ headers: headers });
this.http.get("http://www.spangu.com/ionic2/ionicdemo/index.php/Login/"+this.username+"/"+this.password, options)
.subscribe(data => {
//console.log(data['_body']);
//if password match showing this message.
alert("Login Successfully done!");
}, error => {
//console.log(error);
// Error getting the data
alert("something Wong!")
});
};