Jeremy Likness shows how to take advantage of JavaScript language features and built-in Angular capabilities to architect apps that optimize for performance
You don’t need to use fancy JavaScript features like Object.defineProperty to unify the watch expression and the DOM update expression. As far as I can tell, adding ng-model-options="{getterSetter: true}" and making ng-model reference a normally-defined getter/setter function will have the same effect.
You don’t need to use fancy JavaScript features like
Object.definePropertyto unify the watch expression and the DOM update expression. As far as I can tell, addingng-model-options="{getterSetter: true}"and makingng-modelreference a normally-defined getter/setter function will have the same effect.