I am working on an AngularJS application with an ngRepeat directive. Within this directive, there is a textbox that allows users to input numeric values. I want to capture this user input and perform actions based on it whenever the textbox changes. How can I successfully pass the user input into the ngChange event?
<table>
<tr ng-repeat="d in vm.data">
<td><input type="number" value="{{ d }}" ng-change="vm.onChange(userInput)" /></td> <!-- How can I access the user input within this element? -->
</tr>
</table>
(function () {
var app = angular.module('TestApp', []);
app.controller('TestCtrl', [function () {
var vm = this;
vm.data = [1, 2, 3];
vm.onChange = function (inputValue) {
// handle the change event here...
};
}]);
})();