|
|
@ -49,10 +49,12 @@ export class GfFirePageComponent implements OnInit { |
|
|
public isLoading = false; |
|
|
public isLoading = false; |
|
|
public projectedTotalAmount: number; |
|
|
public projectedTotalAmount: number; |
|
|
public retirementDate: Date; |
|
|
public retirementDate: Date; |
|
|
public safeWithdrawalRateControl = new FormControl<number | undefined>( |
|
|
public readonly safeWithdrawalRateControl = new FormControl< |
|
|
undefined |
|
|
number | undefined |
|
|
); |
|
|
>(undefined); |
|
|
public safeWithdrawalRateOptions = [0.025, 0.03, 0.035, 0.04, 0.045]; |
|
|
public readonly safeWithdrawalRateOptions = [ |
|
|
|
|
|
0.025, 0.03, 0.035, 0.04, 0.045 |
|
|
|
|
|
] as const; |
|
|
public user: User; |
|
|
public user: User; |
|
|
public withdrawalRatePerMonth: Big; |
|
|
public withdrawalRatePerMonth: Big; |
|
|
public withdrawalRatePerMonthProjected: Big; |
|
|
public withdrawalRatePerMonthProjected: Big; |
|
|
@ -60,12 +62,12 @@ export class GfFirePageComponent implements OnInit { |
|
|
public withdrawalRatePerYearProjected: Big; |
|
|
public withdrawalRatePerYearProjected: Big; |
|
|
|
|
|
|
|
|
public constructor( |
|
|
public constructor( |
|
|
private changeDetectorRef: ChangeDetectorRef, |
|
|
private readonly changeDetectorRef: ChangeDetectorRef, |
|
|
private dataService: DataService, |
|
|
private readonly dataService: DataService, |
|
|
private destroyRef: DestroyRef, |
|
|
private readonly destroyRef: DestroyRef, |
|
|
private deviceService: DeviceDetectorService, |
|
|
private readonly deviceService: DeviceDetectorService, |
|
|
private impersonationStorageService: ImpersonationStorageService, |
|
|
private readonly impersonationStorageService: ImpersonationStorageService, |
|
|
private userService: UserService |
|
|
private readonly userService: UserService |
|
|
) {} |
|
|
) {} |
|
|
|
|
|
|
|
|
public ngOnInit() { |
|
|
public ngOnInit() { |
|
|
|