angular-formly is an AngularJS module which has a directive to help customize and render JavaScript/JSON configured forms.
The formly-form
directive and the formlyConfig
service are very powerful and bring unmatched maintainability to your
application's forms.
<form name="vm.someForm" ng-submit="vm.handleSubmit()">
<formly-form model="vm.model" fields="vm.fields" options="vm.options">
<button type="submit" ng-disabled="vm.someForm.$invalid">Submit</button>
<button type="button" ng-click="vm.options.resetModel()">Reset</button>
</formly-form>
</form>
From there, it's just JavaScript. Allowing for DRY, maintainable, reusable forms.
- Introduction
- Bug me for more...
The website is full of tons of examples.
Find all the documentation at docs.angular-formly.com.
See the issues labeled enhancement
Please see the CONTRIBUTING Guidelines.
A special thanks to Nimbly for creating angular-formly. Thanks to Kent C. Dodds for his continued support on the project.