import { FormlyFieldConfig } from '@ngx-formly/core';

export class StepFourModel {
    name: string = '';

    formFields(): FormlyFieldConfig[] {
        return <FormlyFieldConfig[]>[
            {
                key: 'name',
                type: 'input',
                templateOptions: {
                    type: 'text',
                    label: 'Name',
                    placeholder: 'Name',
                    required: true
                },
                validation: {
                    messages: {
                        required: 'sHOULD BE NOT EMPTY'
                    }
                }
            }
        ];
    }
}
