For instance, I have a form with various input fields:
<form>
<input type="text" ng-model="$ctrl.inputText">
<input type="number" ng-model="$ctrl.inputNumber">
</form>
Since my app is component-based, I need to trigger an event in my controller whenever the data in these inputs changes. The $onChanges method only responds when the bound variable changes and does not detect changes within the template.