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
The text was updated successfully, but these errors were encountered:
teropa
changed the title
Add ability to give listeners the old collection in $watchCollection listeners
AngularJS change: Add ability to give listeners the old collection in $watchCollection listeners
Mar 29, 2014
Note to readers: The issue discussed in the book, where $watchCollection listeners get the new value twice in their listener function, and never get the old value, has been fixed in Angular.
The corresponding changes for the book are:
Change the test case introduced on page 74 ("works like a normal watch for non-collections") to not make any assertions about the old value. We'll deal with it later.
Change the test case introduced on page 95 ("does not consider any object with a length property an array") to the way its done on the newest version of the book. Previously it relied on oldValue and it'll break after this change.
Implement the old collection handling as described on pages 96-99.
teropa
changed the title
AngularJS change: Add ability to give listeners the old collection in $watchCollection listeners
AngularJS change: Add ability to give listeners the old collection in $watchCollection
Mar 29, 2014
Applying angular/angular.js#6736
The text was updated successfully, but these errors were encountered: