Angular2 能够动态生成表单(模型驱动表单),而不是手动构建表单(模板驱动)。
我有一个动态表单的变体,其中整个表单生成功能作为一个模块公开(Angular RC5)。
但它因以下错误而中断(出现在开发控制台中)
VM849:20 Error: Error: Unexpected value 'undefined' exported by the module 'DynamicFormModule'
这是笨蛋
最佳答案
有类似的错误。发现它是由我的一个 index.ts 文件中的重复导出引起的:
export * from './article/article.component';
export * from './body/body.component'; //first export
export * from './cards/cards.component';
export * from './body/body.component'; //repeated export
关于angular - 错误 : Unexpected value 'undefined' exported by the module 'DynamicFormModule' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39173159/