Updated to angular 11

Now compiling with strict mode in typescript
Need to error checking now
This commit is contained in:
2020-11-22 10:13:37 +05:30
parent cabd6f2ea1
commit 6567f560ab
187 changed files with 1709 additions and 1184 deletions

View File

@ -18,7 +18,10 @@ export class QuantityComponent implements OnInit {
private fb: FormBuilder,
private math: MathService,
) {
this.createForm();
// Create form
this.form = this.fb.group({
quantity: '',
});
}
ngOnInit() {
@ -27,12 +30,6 @@ export class QuantityComponent implements OnInit {
});
}
createForm() {
this.form = this.fb.group({
quantity: '',
});
}
accept(): void {
const quantity = this.math.parseAmount(this.form.value.quantity);
this.dialogRef.close(quantity);