Chore: Upgrade to Angular v14
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
||||
import { MatPaginator } from '@angular/material/paginator';
|
||||
import { MatSort } from '@angular/material/sort';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
@@ -20,7 +20,7 @@ export class RawMaterialCostComponent implements OnInit {
|
||||
@ViewChild(MatSort, { static: true }) sort?: MatSort;
|
||||
info: RawMaterialCost = new RawMaterialCost();
|
||||
dataSource: RawMaterialCostDataSource = new RawMaterialCostDataSource(this.info.body);
|
||||
form: FormGroup;
|
||||
form: UntypedFormGroup;
|
||||
debitQuantity = 0;
|
||||
debitAmount = 0;
|
||||
creditQuantity = 0;
|
||||
@@ -35,7 +35,7 @@ export class RawMaterialCostComponent implements OnInit {
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private fb: FormBuilder,
|
||||
private fb: UntypedFormBuilder,
|
||||
private toCsv: ToCsvService,
|
||||
) {
|
||||
this.form = this.fb.group({
|
||||
|
||||
Reference in New Issue
Block a user