Skip to content

Commit

Permalink
feat: now passing field config to input component
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Feb 1, 2019
1 parent b3a6e6f commit 25a36aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui/src/lib/io/input/input.component.ts
Expand Up @@ -65,7 +65,8 @@ export class InputComponent extends DynamicSlotComponent implements ControlValue
control: this.control || this.group ? this.group.get(this.field.property) : null,
item: this.item,
field: this.field,
input: this
input: this,
config: this.config || this.field.config
};

const componentRef = this.loadComponent(this.component || this.field.input || DefaultInputComponent, data);
Expand Down

0 comments on commit 25a36aa

Please sign in to comment.