Chore: Upgrade to Angular v14

This commit is contained in:
2022-07-11 20:12:38 +05:30
parent a4c3ae1035
commit b1c003a935
54 changed files with 355 additions and 325 deletions

View File

@ -1,5 +1,5 @@
import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { ToasterService } from '../../core/toaster.service';
@ -13,7 +13,7 @@ import { AuthService } from '../auth.service';
})
export class LoginComponent implements OnInit, AfterViewInit {
@ViewChild('nameElement', { static: true }) nameElement?: ElementRef;
form: FormGroup;
form: UntypedFormGroup;
hide: boolean;
showOtp: boolean;
clientId = '';
@ -25,7 +25,7 @@ export class LoginComponent implements OnInit, AfterViewInit {
private router: Router,
private toaster: ToasterService,
private cs: CookieService,
private fb: FormBuilder,
private fb: UntypedFormBuilder,
) {
this.hide = true;
this.showOtp = false;