angular-formly

Angular-Formly : Adding Form fields dynamically on user click

谁说胖子不能爱 提交于 2019-11-26 14:42:53
How would I go about adding the capability in the form so that the user can add more input fields by clicking the "Add". This using the angular formly library. Here is an example of the exact feature but done using only angularjs. Adding form fields dynamically user3769694 See this Plunker Here is an example of what you need. As you can see in the plunker, there is a TextArea which can be created dynamically on button click. The created TextAreas can also be removed with the remove button click. See the HTML below <div class="col-sm-10"> <input type="button" class="btn btn-info" ng-click=

Angular-Formly : Adding Form fields dynamically on user click

混江龙づ霸主 提交于 2019-11-26 03:59:43
问题 How would I go about adding the capability in the form so that the user can add more input fields by clicking the \"Add\". This using the angular formly library. Here is an example of the exact feature but done using only angularjs. Adding form fields dynamically 回答1: See this Plunker Here is an example of what you need. As you can see in the plunker, there is a TextArea which can be created dynamically on button click. The created TextAreas can also be removed with the remove button click.