import { Component , OnInit } from '@angular/core' ; import { FormBuilder , FormGroup , Validators } from '@angular/forms' ; title @ Component ( { selector : 'stepper-vertical-example' , templateUrl : 'stepper-vertical-example.html' , styleUrls : [ 'stepper-vertical-example.css' ] } ) export class StepperVerticalExample implements OnInit { isLinear = false ; firstFormGroup : FormGroup ; secondFormGroup : FormGroup ; constructor ( private _formBuilder ) { } ngOnInit ( ) { this . firstFormGroup = this . _formBuilder . group ( { firstCtrl : [ '' , Validators . required ] } ) ; this . secondFormGroup = this . _formBuilder . group ( { secondCtrl : [ '' , Validators . required ] } ) ; } }