I have a simple select input field where the user can choose an option:
<select class="form-control" id="calc-masterbatchCode"
ng-options="masterbatch as masterbatch.code for masterbatch in masterbatches"
<input type="text" class="form-control" id="calc-masterbatchPercentage"
ngChange directive doesn't work on disable/readonly inputs, because it's only evaluated when a change in the input value causes a new value to be committed to the model. So, since you're changing the value programmatically and not typing anything to this model, it doesn't calls
Here is more one part extracted from docs:
So, to achieve what you want you must move your
ng-change to your
I hope it helps.