Angular2 has the ability to dynamically generate forms (forms controlled by a model), rather than manually create a form (template-driven).
I have a variation of dynamic forms in which all the functionality of generating a form is displayed as a module (Angular RC5).
But it breaks with the following error (appears in the Dev console)
VM849:20 Error: Error: Unexpected value 'undefined' exported by the module 'DynamicFormModule'
Here plunkr
Dynamic form as a Plunkr module
module angular
user6123723
source share