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

Using checkbox componets with FormGroup and FormControl #168

Closed
simkepal opened this issue Jul 12, 2017 · 3 comments
Closed

Using checkbox componets with FormGroup and FormControl #168

simkepal opened this issue Jul 12, 2017 · 3 comments

Comments

@simkepal
Copy link

Hi,

I like you work and I think you are doing a great job. I have a question and I hope you will be able to help me.

I use Dynamic Forms from angular and I would like to use it also on radio buttons and checkboxes. But it looks like it is not working. But it works for selects.

ERROR Error: No provider for SuiRadioButton! at injectionError (VM2298 core.umd.js:1201) at noProviderError (VM2298 core.umd.js:1239) at ReflectiveInjector_._throwOrNull (VM2298 core.umd.js:2681) at ReflectiveInjector_._getByKeyDefault (VM2298 core.umd.js:2720) at ReflectiveInjector_._getByKey (VM2298 core.umd.js:2652) at ReflectiveInjector_.get (VM2298 core.umd.js:2521) at resolveNgModuleDep (VM2298 core.umd.js:9505) at NgModuleRef_.get (VM2298 core.umd.js:10587) at resolveDep (VM2298 core.umd.js:11090) at createClass (VM2298 core.umd.js:10943)

Can you please help me with this, if I am doing something wrong?

Thank you!

Working Plunker

Angular: 4.2.6
ng2-semantic-ui: 0.9.2
Semantic UI: 2.2.10

@edcarroll
Copy link
Owner

Am currently investigating this one, and will get a fix out for it in the next release in the next few days (I hope!). Thanks for your patience 😄

@edcarroll
Copy link
Owner

This ended up being a bit more complex than I thought, as reactive forms work ever so slightly differently to ngModel. However, this should now work automatically, though in your case change name to [name] and value to [value] so that the correct values are bound to those properties.

Everything else should just work automatically now (after updating to 0.9.3), but let me know if you have any further issues 😄

@simkepal
Copy link
Author

Thank you very much. I will test this and let you know about the result.

gotenxds pushed a commit to gotenxds/ng2-semantic-ui that referenced this issue Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants