mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02:00

* fix: fix issues after updates to Angular 13 in rooms component and country orders component * feat: update to Angular 14 (#1) * fix(angular 13): fix issues after updates to Angular 13 in rooms component and country orders component (#5965) * feat: update to Angular 14 * feat: update angular eslint packages eslint * feat: update nebular to 10 version * feat: update style import, remove ~
43 lines
930 B
TypeScript
43 lines
930 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
|
|
|
@Component({
|
|
selector: 'ngx-stepper',
|
|
templateUrl: 'stepper.component.html',
|
|
styleUrls: ['stepper.component.scss'],
|
|
})
|
|
export class StepperComponent implements OnInit {
|
|
|
|
firstForm: UntypedFormGroup;
|
|
secondForm: UntypedFormGroup;
|
|
thirdForm: UntypedFormGroup;
|
|
|
|
constructor(private fb: UntypedFormBuilder) {
|
|
}
|
|
|
|
ngOnInit() {
|
|
this.firstForm = this.fb.group({
|
|
firstCtrl: ['', Validators.required],
|
|
});
|
|
|
|
this.secondForm = this.fb.group({
|
|
secondCtrl: ['', Validators.required],
|
|
});
|
|
|
|
this.thirdForm = this.fb.group({
|
|
thirdCtrl: ['', Validators.required],
|
|
});
|
|
}
|
|
|
|
onFirstSubmit() {
|
|
this.firstForm.markAsDirty();
|
|
}
|
|
|
|
onSecondSubmit() {
|
|
this.secondForm.markAsDirty();
|
|
}
|
|
|
|
onThirdSubmit() {
|
|
this.thirdForm.markAsDirty();
|
|
}
|
|
}
|