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
fix(ngModelOptions): preserve context of getter/setters
Closesangular#9394
BREAKING CHANGE: previously, ngModel invoked getter/setters in the global context.
For example:
```js
<input ng-model="model.value" ng-model-options="{ getterSetter: true }">
```
would previously invoke `model.value()` in the global context.
Now, ngModel invokes `value` with `model` as the context.
It's unlikely that real apps relied on this behavior. If they did they can use `.bind` to explicilty
bind a getter/getter to the global context, or just reference globals normally without `this`.
}).toThrowMinErr("$parse","syntax","Syntax Error: Token 'error' is an unexpected token at column 7 of the expression [throw error] starting at [error].");
2131
+
});
2132
+
2096
2133
it('should assign invalid values to the scope if allowInvalid is true',function(){
0 commit comments