Moved to Angular 20
Moved to Tailwind 4 Moved to Python 3.13 Enabled arm64/v8 Builds
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { ScrollingModule } from '@angular/cdk/scrolling';
|
||||
import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { Component, OnInit, inject } from '@angular/core';
|
||||
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatOptionModule } from '@angular/material/core';
|
||||
@ -25,6 +25,9 @@ import { Regime } from 'src/app/core/regime';
|
||||
],
|
||||
})
|
||||
export class BillNumberComponent implements OnInit {
|
||||
dialogRef = inject<MatDialogRef<BillNumberComponent>>(MatDialogRef);
|
||||
data = inject(MAT_DIALOG_DATA);
|
||||
|
||||
form: FormGroup<{
|
||||
regime: FormControl<Regime | null>;
|
||||
billNumber: FormControl<number>;
|
||||
@ -32,11 +35,9 @@ export class BillNumberComponent implements OnInit {
|
||||
|
||||
regimes: Regime[] = [];
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<BillNumberComponent>,
|
||||
@Inject(MAT_DIALOG_DATA)
|
||||
public data: Regime[],
|
||||
) {
|
||||
constructor() {
|
||||
const data = this.data;
|
||||
|
||||
this.regimes = data;
|
||||
// Create form
|
||||
this.form = new FormGroup({
|
||||
|
||||
Reference in New Issue
Block a user