Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229600

Ionic 2 Form with ngModel

$
0
0

You call the editprofile() function without any parameter, so the value will be undefined, maybe try this
(ngSubmit)="editprofile(form)", and then I would use value.fullname instead, plus a submit button is enough for you, that will call your function which is in (ngSubmit) so don’t create a new click event.

Btw check the [https://ionicframework.com/docs/developer-resources/forms/](Forms with Templates) section.


Viewing all articles
Browse latest Browse all 229600

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>