Formly for Angular is an AngularJS module which has directives to help customize and render JSON based forms. The directive originated from a need to allow our users to create surveys and distribute them easily. Currently we've can render the form data from JSON and assign a model to form so we can receive the submitted data.
<formly-form result="formData" fields="formFields" options="formOptions" ng-submit="onSubmit()">
</formly-form>
http://Nimbly.github.io/angular-formly/
- required: [TODO]
- optional [TODO]
See bower.json
and index.html
in the master
branch for a full list / more details
- download the files
- Bower
- run
bower install angular-formly
- run
- Bower
- include the files in your app
bower_components/angular-formly/dist/formly.min.js
- include the module in angular (i.e. in
app.js
) -formly
var app = angular.module('app', ['ng', 'ui.router', 'formly']);
[TODO]
git checkout master
- run
npm install && bower install
- test your code using
grunt dev
which hosts the app athttp://localhost:4000
- commit your changes
- run
- update README, CHANGELOG, bower.json, and do any other final polishing to prepare for publishing
- git commit changes
grunt dev
: Creates a server for testing athttp://localhost:400
grunt publish
: Copies the src folder and bower_components to gh-pages