You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
When using ng-model-options="{ getterSetter: true }", the getter & setter methods do not run within the correct scope if defined in a factory. This causes this to be undefined within the getter & setter method - preventing anything from being set or retrieved. (TypeError: Cannot read property 'x' of undefined)
Motivation for or Use Case
While some getter & setter methods should be defined within the controller & scope - more complex objects should contain their own getter and setter methods defined within their factories for a better separation of concerns.
Angular Version
I've tried this with 1.3.0-rc.4 & 1.3.0-rc.3
Browsers and Operating System
This appears to be Angular.js specific and not a browser problem. However, I am using chrome 37.0.2062.124 m on windows 7 64bit.