This is a template for Angular-Formly which adds template basic files with no css classes. Each field is wrapped in a div. This library is not standalone and requires angular-formly to be present and loaded.
Example text field:
<div>
<label for="{{id}}">
{{options.label || 'Text'}}
{{options.required ? '*' : ''}}
</label>
<input type="text"
id="{{id}}"
formly-dynamic-name="options.key"
formly-custom-validation="options.validators"
placeholder="{{options.placeholder}}"
aria-describedby="{{id}}_description"
ng-required="options.required"
ng-disabled="options.disabled"
ng-model="result[options.key || index]">
<p id="{{id}}_description" ng-if="options.description">{{options.description}}</p>
</div>
-
Required to use Formly:
-
Angular
-
Angular-Formly
-
Dev dependencies to build Formly
-
npm
See bower.json
and index.html
in the master
branch for a full list / more details
-
Install Angular-Formly
-
Install Angular-Formly: Bootstrap Templates
$ bower install angular-formly-templates-bootstrap --save
-
Include the javascript file in your index.html, Formly comes in the following flavors:
<script src="bower_components/angular-formly-templates-bootstrap/dist/angular-formly-templates-bootstrap.min.js"></script>
See Angular-Formly.
Please see the CONTRIBUTING Guidelines.
A special thanks to Nimbly for creating/sponsoring Angular-Formly's development. Thanks to Kent C. Dodds for his continued support on the project.