Is it possible to call some javascript function instantly once the pattern is matched in input field? Is there any specific event for that?
<input type="text" class="form-control" name="zipcode" pattern="^[1-9][0-9]{3}\s?[a-z|A-Z]{2}$" (keyup.enter)="checkSth()">
I would like to call this checkSth()
immediately without clicking enter when the pattern is matched.