Browse Source

feat(client): implement viewChild signal

pull/7301/head
KenTandrian 4 days ago
parent
commit
cd0997f085
  1. 6
      apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.component.ts

6
apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.component.ts

@ -10,7 +10,7 @@ import {
CUSTOM_ELEMENTS_SCHEMA,
DestroyRef,
inject,
ViewChild
viewChild
} from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
@ -53,7 +53,7 @@ import { UserAccountRegistrationDialogParams } from './interfaces/interfaces';
templateUrl: 'user-account-registration-dialog.html'
})
export class GfUserAccountRegistrationDialogComponent {
@ViewChild(MatStepper) protected stepper!: MatStepper;
protected readonly stepper = viewChild.required(MatStepper);
protected accessToken: string | undefined;
protected authToken: string;
@ -83,7 +83,7 @@ export class GfUserAccountRegistrationDialogComponent {
this.authToken = authToken;
this.role = role;
this.stepper.next();
this.stepper().next();
this.changeDetectorRef.markForCheck();
});

Loading…
Cancel
Save