@spartacus/user
Version:
User feature library for Spartacus
23 lines (22 loc) • 1.06 kB
TypeScript
import { FormGroup } from '@angular/forms';
import { GlobalMessageService, RoutingService } from '@spartacus/core';
import { UserPasswordFacade } from '@spartacus/user/profile/root';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
export declare class UpdatePasswordComponentService {
protected userPasswordService: UserPasswordFacade;
protected routingService: RoutingService;
protected globalMessageService: GlobalMessageService;
constructor(userPasswordService: UserPasswordFacade, routingService: RoutingService, globalMessageService: GlobalMessageService);
protected busy$: BehaviorSubject<boolean>;
isUpdating$: import("rxjs").Observable<boolean>;
form: FormGroup;
/**
* Updates the password for the user.
*/
updatePassword(): void;
protected onSuccess(): void;
protected onError(_error: Error): void;
static ɵfac: i0.ɵɵFactoryDeclaration<UpdatePasswordComponentService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<UpdatePasswordComponentService>;
}