Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call add method #28

Open
RupenAnjaria opened this issue Aug 8, 2016 · 2 comments
Open

How to call add method #28

RupenAnjaria opened this issue Aug 8, 2016 · 2 comments

Comments

@RupenAnjaria
Copy link

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?

@CosticaPuntaru
Copy link

    .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')
        );
    }])

@RupenAnjaria
Copy link
Author

Thank you, will give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants