angular-formly-templates-bootstrap
Version:
Angular-Formly plugin which outputs bootstrap compatible form fields.
17 lines (15 loc) • 376 B
JavaScript
export default ngModule => {
ngModule.config(addCheckboxType);
function addCheckboxType(formlyConfigProvider) {
formlyConfigProvider.setType({
name: 'checkbox',
template: require('./checkbox.html'),
wrapper: ['bootstrapHasError'],
apiCheck: check => ({
templateOptions: {
label: check.string
}
})
});
}
};