Sign Up Page Component
class SignUpPageComponent
sign-up-page.component.ts
import { NgOptimizedImage } from '@angular/common';
import { Component, inject, OnDestroy, OnInit } from '@angular/core';
import {
FormBuilder,
FormControl,
FormGroup,
ReactiveFormsModule,
Validators,
} from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatTooltipModule } from '@angular/material/tooltip';
import { Router, RouterLink } from '@angular/router';
import { AlertService } from '@jet/services/alert/alert.service';
import { LoggerService } from '@jet/services/logger/logger.service';
import { ProgressBarService } from '@jet/services/progress-bar/progress-bar.service';
import { UserService } from '@jet/services/user/user.service';
import { TranslocoModule, TranslocoService } from '@jsverse/transloco';
import {
BindQueryParamsFactory,
BindQueryParamsManager,
} from '@ngneat/bind-query-params';
import { PageComponent } from '../page/page.component';
@Component({
imports: [
NgOptimizedImage,
ReactiveFormsModule,
MatButtonModule,
MatCardModule,
MatFormFieldModule,
MatIconModule,
MatInputModule,
MatTooltipModule,
RouterLink,
TranslocoModule,
PageComponent,
],
selector: 'jet-sign-up-page',
styleUrl: './sign-up-page.component.scss',
templateUrl: './sign-up-page.component.html',
})
export class SignUpPageComponent implements OnInit, OnDestroy {
private readonly _formBuilder = inject(FormBuilder);
private readonly _router = inject(Router);
private readonly _alertService = inject(AlertService);
private readonly _loggerService = inject(LoggerService);
private readonly _progressBarService = inject(ProgressBarService);
private readonly _userService = inject(UserService);
private readonly _translocoService = inject(TranslocoService);
private readonly _bindQueryParamsFactory = inject(BindQueryParamsFactory);
private readonly _bindQueryParamsManager: BindQueryParamsManager<{
email: string;
}>;
public isPasswordHidden: boolean;
public isSignUpPending: boolean;
public readonly signUpFormGroup: FormGroup<{
email: FormControl<string | null>;
password: FormControl<string | null>;
}>;
public constructor() {
// Buy to unlock
}
public ngOnInit(): void {
// Buy to unlock
}
public ngOnDestroy(): void {
// Buy to unlock
}
public async signUp(email: string, password: string) {
// Buy to unlock
}
}
Last updated
Was this helpful?