I'd like to perform an action (submit the form, basically) when a string entered in an input field reaches a given length, using Angular2. I tried using Angular2's Controls but it didn't seem to be meant for that.
I could do it using jQuery or vanilla Javascript but I was wondering if there was a more "Angular2" way to do it.
<input type="text" value="{{userInput}}" class="form-control">
// When userInput > 3, submit form
This framework being relatively new, I cannot find any solution on the Internet, although it is probably very simple. Does anyone have an idea ?
Thank you.