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

easy forms with material2 #9

Open
net-system opened this issue Feb 6, 2017 · 2 comments
Open

easy forms with material2 #9

net-system opened this issue Feb 6, 2017 · 2 comments

Comments

@net-system
Copy link

This module It's amazing and work well with angular2-dynamic-component!
Now I would like to use your module with material2.
To do this, I try to extend 'EasyFormsComponent' class to override 'ef-question' tag with 'material-ef-question'.
But 'constructor(private _controlGroup: ControlGroupService) {}'
this private limit my approach.

Some ideas?

thank you!

@flauc
Copy link
Owner

flauc commented Feb 6, 2017

Hi @net-system,

Thanks man 👍

Why don't you make a fork of the repo where you change the ef-question for the material-ef-question. I think that should work right away. You can also npm install directly from github.

@vZanchiV
Copy link

vZanchiV commented Mar 9, 2017

Nice Job @flauc .

I try to use module with material2 and select2.
But when i add select2 question.component, i add

<div *ngSwitchCase="'select2'" [ngClass]="question.classes?.question">
                   <select2
                       [data]="data"
                   ></select2>
                </div>

i add in data.interface.js type select2
and data?: string | number | Array. But i have a error, i forget to do anything ?

my error :

Can't bind to 'data' since it isn't a known property of 'select2'. ("ect2'" [ngClass]="question.classes?.question"> <select2 [ERROR ->][data]="data" ></select2> </div> "): QuestionComponent@20:24

You can help me plz ?

Thx You

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

3 participants