Angular strongly typed reactive forms

前端 未结 3 1569
再見小時候
再見小時候 2021-02-14 01:57

I\'m looking to refactor a large set of components in my Angular project to have strongly typed FormGroups, FormArrays, and FormControls.

I\'m just looking for a good wa

3条回答
  •  长发绾君心
    2021-02-14 02:37

    The solution I ended up using was a library I found called ngx-strongly-typed-forms

    It enables you to have strongly typed FormControls, FormGroups, and FormArrays. There are some limitations but it's definitely helped a lot in my project.

    You can see the documentation at https://github.com/no0x9d/ngx-strongly-typed-forms

提交回复
热议问题