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.
It could also provide better performance by implementing specific equality function for watched object.
My concrete use case : I have momentJS objects inside deep data to watch. But angular.equals doesn't work well with momentJS. For equality checking on momentJS object, moment#isSame must be used instead. Using this new functional parameter, i could delegate equality to lodash#isEqual which is able to customize object equality.
The text was updated successfully, but these errors were encountered:
It would be useful to be able to pass a function as the 3rd parameter
objectEquality
of $scope.$watch.If a function is passed, is will be used instead of angular.equals to check for object equality.
It could also provide better performance by implementing specific equality function for watched object.
My concrete use case : I have momentJS objects inside deep data to watch. But angular.equals doesn't work well with momentJS. For equality checking on momentJS object, moment#isSame must be used instead. Using this new functional parameter, i could delegate equality to lodash#isEqual which is able to customize object equality.
The text was updated successfully, but these errors were encountered: