Check out this code snippet:
<form data-ng-submit="ctrl.filter()" novalidate="true" class="search-filter ng-valid ng-dirty ng-valid-parse">
<fieldset>
<div class="search-filter-group">
<div class="search-field-group">
<div class="text-field">
<input type="text" placeholder="Type some text" data-ng-model="ctrl.searchString" class="ng-valid ng-touched ng-dirty ng-valid-parse">
<div data-ng-click="ctrl.resetFilter()" class="action-button reset-button">Reset</div>
</div>
</div>
<input type="submit" value="Find" data-ng-class="{disabled: !ctrl.canFilter()}" class="button">
</div>
</fieldset>
</form>
After clicking the submit button, I noticed that the 'ctrl.filter()' function didn't trigger. However, upon adding data-ng-click="ctrl.filter()"
to the submit input, it started working. Why is this happening?