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