-
Notifications
You must be signed in to change notification settings - Fork 186
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
Submit form.value to signIn method #28
Comments
Hey @artem-galas, I finally got around to take a deeper look at this behavior.
signIn({email: string, password: string}) instead of signIn(email: string, password: string) I'm not 100% sure how to modify this without breaking every existing implementation, because (as far as I know) there is no method overloading in Typescript. Anyways, the behavior you described
seems to be Rails related. Angular2-Token sends only a hash like |
Any news on this? I'm facing the same problem. |
@rafaelss95 did a little research on this, but couldn't find a solution yet. Seems to be a problem with rails and angular2. Would be nice if someone could confirm this. |
@neroniaky, well, as a suggestion I think would be better if we could pass the whole object to the functions. And about a possible problem with Rails and Angular2, I have some services implemented and I don't got any kind of error (I usually do the following): Component:
Service:
So, I get the following code, which works perfectly:
|
@rafaelss95 Thank you for your input. I'm working on version 0.2.0 which is supposed to support passing the entire object. Hope to publish it soon. |
Hello, @neroniaky, any news on this? |
Hey @rafaelss95, I had quite a lot to do in the last weeks. Version 0.2.0 is almost done. I hope to publish a beta this week. |
@neroniaky hey how is it going with the fix? @rafaelss95 Could you provide more details on ur hack? |
@kamrantgp @rafaelss95 I just published v0.2.0-beta.1. Would be good if you could give it try 👍 |
For example, we use the form as
FormGroup
for SignIn. Then we have incorrect data gets to BackEnd.For example we have SignIn form, it contains the next object -
And when sending to RailsApp, we get such parameters -
I think should overwrite signIn/signUp methods such way, so that they can pass
form.value
method.What do you think about it?
Example signIn.component.ts (code such similar with article about FormValidataion
Example signIn.component.html
The text was updated successfully, but these errors were encountered: