generator-angular-fullstack icon indicating copy to clipboard operation
generator-angular-fullstack copied to clipboard

Update settings.html

Open JosephSKh opened this issue 7 years ago • 3 comments

sending the form in changePassword function

JosephSKh avatar Apr 17 '18 21:04 JosephSKh

How about doing the same as the login and sign up pages? ex: https://github.com/angular-fullstack/generator-angular-fullstack/blob/master/templates/app/client/app/account(auth)/login/login.html#L9

Awk34 avatar Apr 19 '18 21:04 Awk34

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

JosephSKh avatar Apr 21 '18 12:04 JosephSKh

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.

Awk34 avatar Apr 23 '18 03:04 Awk34