Bug
Form value with ngModel fields on form submit
Form value doesn't contain form ngModel field on form submit
https://stackblitz.com/edit/angular-material2-issue?file=app%2Fapp.component.html
If i use #fieldname it can bind the value but the problem is i can't use [formControl] and #userCode="ngModel" at the same time.
`
[errorStateMatcher]="matcher"
`
@sivahanuman I did this guide about forms and validations in angular 5 with material components .
There's also a code example you can use. Hope it helps :)
I don't think ngModel and formControl are meant to be used together on the same element.
Thanks Dayana Jabif.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
@sivahanuman I did this guide about forms and validations in angular 5 with material components .
There's also a code example you can use. Hope it helps :)