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
refactor(scope): watch "readOnly" arg renamed to "canChangeModel"
closesdart-archive#739
This changes is a BC break:
- the "readOnly" parameter has been renamed to "canChangeModel",
- the semantic is inversed
Before:
// Default to digest (readOnly = false by default)
scope.watch(exp, fn);
// Explicit flush
scope.watch(exp, fn, readOnly: true);
After:
// Default to digest (canChangeModel = true by default)
scope.watch(exp, fn);
// Explicit flush
scope.watch(exp, fn, canChangeModel: false);
0 commit comments