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

Update settings.html #2709

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

JosephSKh
Copy link

sending the form in changePassword function

sending the form in changePassword function
@Awk34
Copy link
Member

Awk34 commented Apr 19, 2018

@Awk34 Awk34 self-requested a review April 19, 2018 21:53
@Awk34 Awk34 added the V5 label Apr 19, 2018
@JosephSKh
Copy link
Author

@Awk34 I think you've already done that? you are sending the form in the function, please point me if I'm wrong

@Awk34
Copy link
Member

Awk34 commented Apr 23, 2018

Take a look at this plunker: https://plnkr.co/edit/gmiLd1h7reY7XHLmbHgn?p=preview

Using this in the template sends the component instance, which is not what we want. Passing the ngForm instance is what we want, which includes data like valid, etc.

Copy link
Member

@Awk34 Awk34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add #settingsForm="ngForm" to the <form> tag, and replace this with settingsForm in the (ngSubmit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants