I have this markup:
<input ng-model="obj.mtdEstimate" ng-change="vm.percentChanged(obj)" type="number" />
when updating my models in the controller, I noticed that the ngChange event fires
controller:
myObjects.forEach(o => o.mtdEstimate = xx);
* I am sure that changing a property in the controller raises an event, because I can comment on the line where the property is updated and which stops the event trigger:
pp.mtdEstimate = x;
from the stack trace, I see the code that is being entered that fires this event (not like my code):
(function($filter,getStringValue,ifDefined,plus
/*``*/) {
"use strict";
var fn=function(s,l,a,i){var v0,v1,v2,v3=l&&('vm' in l),v4,v5=l&&('positionPricing' in l);if(!(v3)){if(s){v2=s.vm;}}else{v2=l.vm;}if(v2!=null){v1=v2.percentChanged;}else{v1=undefined;}if(v1!=null){if(!(v5)){if(s){v4=s.positionPricing;}}else{v4=l.positionPricing;}v0=v2.percentChanged(v4);}else{v0=undefined;}return v0;};return fn;
})

source
share