Angular 反应式子组件

Angular reactive form child component

我想用 DE/EN 数据创建可重复使用的输入组组件。

我正在寻找,一旦为 EN 和 DE 填写了所有必填字段,提交按钮就会被启用。并且还应该以 JSON 格式获取所有数据。

这里是示例https://stackblitz.com/edit/angular-avjyct?file=app/app.component.ts

我一直在尝试但卡住了。请专家指教?

您似乎想将字符串值传递给您的子组件,但却传递了 undefined

[en]="label1_en"
      ^^^^^^^^^
there is no such property in your component.

您可以像这样传递字符串:

[en]="'label1_en'"

en="label1_en"

Forked Stackblitz