-
Notifications
You must be signed in to change notification settings - Fork 24
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
Warning message Ngmodel is getting deprecated #23
Comments
In order to fix the issue I have used the following snippet: Hope it helps! |
Hi @jgomesmv, sorry for the delay. I've checked it an read about this breaking backwards compatibility change. These are good sources to read: The first one explains why mixing The way to solve it properly is following both link instructions, that is using either Summarizing:
<form [formGroup]="form">
<input formControlName="first">
</form> this.form.get('first').setValue('some value');
<input required minlength="4" appForbiddenName="bob" [(ngModel)]="firstName"> this.value = 'some value'; Hope it helps. |
Hi @irossimoline |
Hi @massimo-ua, Now the code and Readme are updated to reflect this: you can check the changes on this commit. Because of your feedback, I also changed to use |
Hi @irossimoline |
It seems that ngmodel will be removed on Angular7.
I tried to change the code to in order to support the new practices regarding FormGroup and FormControl. But the lines appear always in edit mode.
This is the snippet I have used:
<input matInput formControlName="row.validator.controls['name']" [readonly]="!row.editing" placeholder="Name" [value]="row.currentData.name">
Any thoughts about this?
Thanks!
The text was updated successfully, but these errors were encountered: