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

Example with reactive form #73

Open
edskeizer opened this issue Mar 21, 2017 · 6 comments
Open

Example with reactive form #73

edskeizer opened this issue Mar 21, 2017 · 6 comments

Comments

@edskeizer
Copy link

In the README, there currently is a short mention of usage with the ReactiveFormsModule. Can someone provide a working example with reactive forms?

@ebrehault
Copy link
Collaborator

Actually you just need to import the module.
Here is an example:
https://github.com/ebrehault/ng-sf-mdl-demo/blob/master/src/app/app.module.ts#L22

@edskeizer
Copy link
Author

I understand that I can import the module, but how to access the the FormControl / FormGroup from outside? E.g. I want to validate and submit the whole FormGroup, and subscribe to valueChanges of it.

@ebrehault ebrehault reopened this Mar 23, 2017
@ebrehault
Copy link
Collaborator

Oh right sorry.
I am not sure it is exposed to the outside. I will have a look.

@maku
Copy link

maku commented Apr 24, 2017

@ebrehault do you know how to access FormGroup / FormControl? What would be the way to check if the input data are valid?

@Mr-Liquid
Copy link

@ebrehault Any updates regarding to this question?

@abarghoud
Copy link

@ebrehault any updates on this ?

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

5 participants