angular2-easy-forms icon indicating copy to clipboard operation
angular2-easy-forms copied to clipboard

easy forms with material2

Open net-system opened this issue 7 years ago • 2 comments

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!

net-system avatar Feb 06 '17 09:02 net-system

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.

flauc avatar Feb 06 '17 09:02 flauc

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

vZanchiV avatar Mar 09 '17 10:03 vZanchiV