How to update the backing property of an ngModel upon calling typeInElement? #601
jfpicard123
started this conversation in
General
Replies: 1 comment
-
I just found ... I needed to import the FormsModule of course. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's the HTML
<input [(ngModel)]="user.username" name="username" required class="form-control" id="username" placeholder="Enter your username">
After this line of code (regardless if I run detectChanges or not)
spectator.typeInElement('myusername', username);
the backing property (user.username) is not updated.
How can this be achieved?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions