Open RupenAnjaria opened 7 years ago
.config(['fgConfigProvider', 'FgField', function (fgConfigProvider, FgField) {
var field = new FgField('Component', {
displayName: 'component',
value: void 0
});
fgConfigProvider.fields.add(
field,
'Components',
require('./field.html'),
require('./field-config.html')
);
}])
Thank you, will give it a try.
The source file (https://github.com/McNull/angular-form-gen/blob/master/src/angular-form-gen/angular-form-gen.js) has a reference to add function at line 55. Do anyone know how to call this function while using the the generated form?