angular2-easy-forms
angular2-easy-forms copied to clipboard
easy forms with material2
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!
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.
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
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