Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 2.13 KB

File metadata and controls

60 lines (44 loc) · 2.13 KB

Build Status Coverage Status

Angular-Formly: Bootstrap Template

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>

Dependencies

  • 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 in your project

  • 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>

Documentation

See Angular-Formly.

Contributing

Please see the CONTRIBUTING Guidelines.

Thanks

A special thanks to Nimbly for creating/sponsoring Angular-Formly's development. Thanks to Kent C. Dodds for his continued support on the project.