I got register form with 4 to 5 select fields the values are too many in register.component.ts . Can I import all 4 to 5 values from other file or any better way to write the code. I want to be in 1st method.
/* 1st method */
companySize = SelectionHelper.companySize;
/* 2nd method*/
companySize = [
{
label: 'projectEnquiry',
value: 'Project Enquiry'
},
{
label: 'technicalSupport',
value: 'Technical support'
},
{
label: 'salesPrice',
value: 'Sales / Pricing'
},
{
label: 'leadTime',
value: 'Lead Time'
},
{
label: 'others',
value: 'General'
}
];
<select formControlName="companySize">
<option *ngFor="let option of companySize" [value]="option.value">{{ option.label }}</option>
</select>