|
@@ -10,7 +10,8 @@ import {
|
|
|
NG_ASYNC_VALIDATORS, AsyncValidatorFn
|
|
|
} from '@angular/forms';
|
|
|
|
|
|
-import * as formFieldComponents from './../components';
|
|
|
+import { ffcArr } from './../components';
|
|
|
+const formFieldComponents = ffcArr.reduce((acc, componentClass) => ({ ...acc, [componentClass.name]: componentClass }), {});
|
|
|
|
|
|
interface IFFC {
|
|
|
control: FormControl; // Remember, this can be an individual FormControl or a FormGroup
|