refactor(routes): simplify component loading syntax
This commit is contained in:
parent
f88795f7c5
commit
e5f8d6ce10
5 changed files with 46 additions and 53 deletions
|
@ -19,7 +19,7 @@ import { Oauth2Service } from './oauth2.service';
|
|||
</div>
|
||||
`,
|
||||
})
|
||||
export class OAuth2CallbackComponent implements OnInit {
|
||||
export default class OAuth2CallbackComponent implements OnInit {
|
||||
error: Signal<string> = computed(() => this.oauthService.error());
|
||||
|
||||
private route: ActivatedRoute = inject(ActivatedRoute);
|
||||
|
|
|
@ -10,7 +10,7 @@ import { AuthService } from '@service/auth.service';
|
|||
imports: [CommonModule, ReactiveFormsModule, RouterModule],
|
||||
templateUrl: './recover-password.component.html',
|
||||
})
|
||||
export class RecoverPasswordComponent implements OnInit {
|
||||
export default class RecoverPasswordComponent implements OnInit {
|
||||
emailForm: FormGroup;
|
||||
resetPasswordForm: FormGroup;
|
||||
errorMessage = signal('');
|
||||
|
|
|
@ -7,7 +7,7 @@ import { AuthService } from '@service/auth.service';
|
|||
imports: [],
|
||||
templateUrl: './verify-email.component.html',
|
||||
})
|
||||
export class VerifyEmailComponent implements OnInit {
|
||||
export default class VerifyEmailComponent implements OnInit {
|
||||
route: ActivatedRoute = inject(ActivatedRoute);
|
||||
router: Router = inject(Router);
|
||||
authService: AuthService = inject(AuthService);
|
||||
|
|
|
@ -24,7 +24,7 @@ type DiceFormGroup = FormGroup<{
|
|||
imports: [CommonModule, ReactiveFormsModule],
|
||||
templateUrl: './dice.component.html',
|
||||
})
|
||||
export class DiceComponent implements OnInit {
|
||||
export default class DiceComponent implements OnInit {
|
||||
private readonly formBuilder = inject(FormBuilder);
|
||||
private readonly diceService = inject(DiceService);
|
||||
private readonly userService = inject(UserService);
|
||||
|
|
Reference in a new issue