Chore: Upgrade to Angular v14

This commit is contained in:
tanshu committed 2022-07-11 20:12:38 +05:30
1 parent a4c3ae1035
commit b1c003a935
54 files changed
+355 -325

No files matched your search

@@ -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 { CostCentre } from '../../core/cost-centre';
@@ -13,13 +13,13 @@ import { CostCentreService } from '../cost-centre.service';
})
export class CostCentreDetailComponent implements OnInit, AfterViewInit {
@ViewChild('nameElement', { static: true }) nameElement?: ElementRef;
form: FormGroup;
form: UntypedFormGroup;
item: CostCentre = new CostCentre();
constructor(
private route: ActivatedRoute,
private router: Router,
private fb: FormBuilder,
private fb: UntypedFormBuilder,
private toaster: ToasterService,
private ser: CostCentreService,
) {