|
1 | 1 | import { ChangeDetectorRef, Component, ViewChild } from '@angular/core';
|
2 | 2 | import { FormControl, FormGroup, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
3 |
| -import { IgxStepperComponent, IgxStepComponent, IgxStepTitleDirective, IgxStepContentDirective, IgxCardComponent, IgxCardMediaDirective, IgxCardContentDirective, IgxInputGroupComponent, IgxInputDirective, IgxLabelDirective, IgxSelectComponent, IgxSelectItemComponent, IgxMaskDirective, IgxCheckboxComponent, IgxHintDirective, IgxRadioGroupDirective, IgxRadioComponent, IgxButtonDirective, IgxIconComponent } from 'igniteui-angular'; |
| 3 | +import { IgxStepperComponent, IgxStepComponent, IgxStepTitleDirective, IgxStepContentDirective, IgxCardComponent, IgxCardMediaDirective, IgxCardContentDirective, IgxInputGroupComponent, IgxInputDirective, IgxLabelDirective, IgxSelectComponent, IgxSelectItemComponent, IgxMaskDirective, IgxCheckboxComponent, IgxHintDirective, IgxRadioGroupDirective, IgxRadioComponent, IgxButtonDirective, IgxIconComponent, IgxBadgeComponent } from 'igniteui-angular'; |
4 | 4 | import { NgFor, NgClass, NgIf, DatePipe } from '@angular/common';
|
5 | 5 |
|
6 | 6 | export interface BusinessInformation{
|
@@ -37,7 +37,7 @@ export interface ShippingDetails{
|
37 | 37 | selector: 'app-stepper-sample-reactive-forms',
|
38 | 38 | styleUrls: ['./stepper-sample-reactive-forms.component.scss'],
|
39 | 39 | templateUrl: './stepper-sample-reactive-forms.component.html',
|
40 |
| - imports: [IgxStepperComponent, IgxStepComponent, IgxStepTitleDirective, IgxStepContentDirective, NgFor, IgxCardComponent, NgClass, NgIf, IgxCardMediaDirective, IgxCardContentDirective, FormsModule, ReactiveFormsModule, IgxInputGroupComponent, IgxInputDirective, IgxLabelDirective, IgxSelectComponent, IgxSelectItemComponent, IgxMaskDirective, IgxCheckboxComponent, IgxHintDirective, IgxRadioGroupDirective, IgxRadioComponent, IgxButtonDirective, IgxIconComponent, DatePipe] |
| 40 | + imports: [IgxStepperComponent, IgxStepComponent, IgxStepTitleDirective, IgxStepContentDirective, IgxBadgeComponent, NgFor, IgxCardComponent, NgClass, NgIf, IgxCardMediaDirective, IgxCardContentDirective, FormsModule, ReactiveFormsModule, IgxInputGroupComponent, IgxInputDirective, IgxLabelDirective, IgxSelectComponent, IgxSelectItemComponent, IgxMaskDirective, IgxCheckboxComponent, IgxHintDirective, IgxRadioGroupDirective, IgxRadioComponent, IgxButtonDirective, IgxIconComponent, DatePipe] |
41 | 41 | })
|
42 | 42 | export class StepperSampleReactiveFormsComponent {
|
43 | 43 | @ViewChild('stepper', { static: true })
|
@@ -75,12 +75,12 @@ export class StepperSampleReactiveFormsComponent {
|
75 | 75 | 'Nevada', 'New York', 'New Jersey', 'Ohio', 'Texas', 'Virginia', 'Washington'
|
76 | 76 | ];
|
77 | 77 | public selectedCard: any;
|
78 |
| - |
| 78 | + |
79 | 79 | public businessInformation:FormGroup<BusinessInformation>;
|
80 | 80 | public personalInformation:FormGroup<PersonalInformation>;
|
81 | 81 | public shippingDetails:FormGroup<ShippingDetails>;
|
82 |
| - |
83 |
| - constructor(private cdr: ChangeDetectorRef) { |
| 82 | + |
| 83 | + constructor(private cdr: ChangeDetectorRef) { |
84 | 84 | this.businessInformation = new FormGroup<BusinessInformation>({
|
85 | 85 | name: new FormControl('', Validators.required),
|
86 | 86 | physicalAddress: new FormControl('', Validators.required),
|
|
0 commit comments