简体   繁体   English

带有api数据的Angular Dynamic表单

[英]Angular Dynamic forms with api data

Do we have any best examples to create a dynamic forms from the data ? 我们有没有最好的例子来根据数据创建动态表格? Which input fileds always dynamic. 哪些输入字段始终是动态的。 The use case I'm looking for is I have api which is having set of records which always not really consist means today if have 20 record tomrrow may increase upto another 20 ,with this scenario do we have any sort of forks ? 我要寻找的用例是我有api,该api的记录集始终并不真正构成,意味着如果今天有20条记录的明天可能会增加到另外20条记录,那么在这种情况下,我们是否有任何分叉?

We use the ngx-formly module for rendering forms using json schema. 我们使用ngx-formly模块使用json模式呈现表单。 It is a very vast library with awesome community support and a whole lot of features. 这是一个非常庞大的图书馆,拥有很棒的社区支持和很多功能。 You just need to pass your json schema in a specific format and the form will be rendered with all validations. 您只需要以特定格式传递json模式,该表单将通过所有验证呈现。

https://github.com/ngx-formly/ngx-formly GitHub - ngx-formly/ngx-formly: JSON powered / Dynamic forms https://github.com/ngx-formly/ngx-formly GitHub-ngx-formly / ngx-formly:JSON支持/动态表单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM