File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ import {DateInputExtraField} from './fields/date-input-extra-field';
15
15
} )
16
16
export class DynamicForm {
17
17
@Input ( 'entity' ) entityPromise :Promise < { extraFields :any } > ;
18
- @ViewChild ( 'extraField' , { read : ViewContainerRef } ) extraField :ViewContainerRef ;
18
+ @ViewChild ( 'extraField' , { read : ViewContainerRef } ) extraFieldRef :ViewContainerRef ;
19
19
form :ExtraForm ;
20
20
onlyExtraFields :boolean = true ;
21
- constructor ( private http :Http , private dcl : DynamicComponentLoader , private elementRef : ElementRef ) {
21
+ constructor ( private http :Http , private dcl : DynamicComponentLoader ) {
22
22
this . form = new ExtraForm ( ) ;
23
23
}
24
24
ngOnInit ( ) :void {
@@ -53,7 +53,7 @@ export class DynamicForm {
53
53
type = DateInputExtraField ;
54
54
}
55
55
56
- this . dcl . loadNextToLocation ( type , this . extraField ) . then ( ( componentRef :ComponentRef < any > ) => {
56
+ this . dcl . loadNextToLocation ( type , this . extraFieldRef ) . then ( ( componentRef :ComponentRef < any > ) => {
57
57
let instance :ExtraField = componentRef . instance ;
58
58
instance . entity = entity ;
59
59
instance . field = field ;
You can’t perform that action at this time.
0 commit comments