UNPKG

angular-formly-templates-bootstrap

Version:

Angular-Formly plugin which outputs bootstrap compatible form fields.

21 lines (19 loc) 540 B
export default ngModule => { ngModule.config(addWrappers); function addWrappers(formlyConfigProvider) { formlyConfigProvider.setWrapper([ { name: 'bootstrapLabel', template: require('./label.html'), apiCheck: check => ({ templateOptions: { label: check.string.optional, required: check.bool.optional, labelSrOnly: check.bool.optional, } }) }, {name: 'bootstrapHasError', template: require('./has-error.html')} ]); } };