If I have an input
element and I with pure javascript would do something like this:
document.getElementById('myElement').value = 'Potato';
Then the form validation and change detection in Angular 2 wouldn't trigger. However, if I would have type that value in the input field, it triggers.
How can I setup my form validation and change detection in Angular 2 so that they trigger no matter how the input receives its text, whether it be by keyboard, pasting with a mouse, adding text programatically as the code above?