#967 initial support for dynamic components (wip)

- form rendering service to control field-component type mappings
- special <form-field> component with dynamic content creation based on
mapped types
- migrated <text> component to dynamic creation
This commit is contained in:
Denys Vuika
2016-11-14 14:47:13 +00:00
committed by Mario Romano
parent c9e3723613
commit 4c95ed1f71
7 changed files with 140 additions and 4 deletions

View File

@@ -20,7 +20,7 @@
<number-widget [field]="field" (fieldChanged)="fieldChanged($event);"></number-widget>
</div>
<div *ngSwitchCase="'text'">
<text-widget [field]="field" (fieldChanged)="fieldChanged($event);"></text-widget>
<form-field [field]="field"></form-field>
</div>
<div *ngSwitchCase="'multi-line-text'">
<multiline-text-widget [field]="field" (fieldChanged)="fieldChanged($event);"></multiline-text-widget>