When there is an error,it will give .then()..then() is not a function
ngServices.$http
.post(settings.webservices.login, {
CampaignName: settings.app.campaignName,
Email: this.model.email,
Password: this.model.password,
ItemId: settings.app.itemId
})
.then(this.__onLoginSuccess__.bind(this))
.then(this.__onGISpecificSuccess__.bind(this))
['error'](this.__onLoginError__.bind(this));