C☭
forgotPassword(model: Models.IForgotPasswordModel): ng.IPromise<void> {
var deferred = this.$q.defer<void>();
this.$http.post(HttpService.serviceBase + 'api/account/forgotpassword', JSON.stringify(model))
.success((data) => { deferred.resolve(); })
.error((data, status) => { deferred.reject(this.onError(data, status)); });
return deferred.promise;
}почему во многих примерах/проектах используют $q для httpService'a????
