mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-12 03:21:37 +00:00
28 lines
733 B
TypeScript
Executable File
28 lines
733 B
TypeScript
Executable File
import {Component, OnInit} from '@angular/core';
|
|
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
|
|
|
|
/**
|
|
* @title Stepper with editable steps
|
|
*/
|
|
@Component({
|
|
selector: 'stepper-editable-example',
|
|
templateUrl: 'stepper-editable-example.html',
|
|
styleUrls: ['stepper-editable-example.css']
|
|
})
|
|
export class StepperEditableExample implements OnInit {
|
|
firstFormGroup: FormGroup;
|
|
secondFormGroup: FormGroup;
|
|
isEditable = false;
|
|
|
|
constructor(private _formBuilder: FormBuilder) {}
|
|
|
|
ngOnInit() {
|
|
this.firstFormGroup = this._formBuilder.group({
|
|
firstCtrl: ['', Validators.required]
|
|
});
|
|
this.secondFormGroup = this._formBuilder.group({
|
|
secondCtrl: ['', Validators.required]
|
|
});
|
|
}
|
|
}
|