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.
If i have a complex class MyClass that has many properties, i can usually provide better implementation for testing equality for that class then the default angular.equals.
Ffor my own watch i can optimize them by making sure i only perform watch on the specific state properties. but if my code uses some library, i can not customize the way that library perform its watch on my objects
The simplest example is an ng-repeat on an array of such objects
So i am looking for a way that i can enhance the equals mechanism used inside angular to fit better the specific SPA.
One possible option i presented in this pull request #5913
The text was updated successfully, but these errors were encountered:
I don't think we can really do this and make it part of the API... Something which is doable for your own app is to patch AngularJS manually, if you don't have a way to monkey-patch a particular part of it.
There are some articles out there which can help you monkey-patch angular for some particular performance enhancements (http://blog.scalyr.com/2013/10/31/angularjs-1200ms-to-35ms/ is one), and maybe some of these perf enhancements will make it into core some day, who knows.
If there are proper perf concerns with ngRepeat (which there certainly are) which don't involve enabling monkey-patching, then that's something which is much easier to deal with.
If i have a complex class MyClass that has many properties, i can usually provide better implementation for testing equality for that class then the default angular.equals.
Ffor my own watch i can optimize them by making sure i only perform watch on the specific state properties. but if my code uses some library, i can not customize the way that library perform its watch on my objects
The simplest example is an
ng-repeat
on an array of such objectsSo i am looking for a way that i can enhance the equals mechanism used inside angular to fit better the specific SPA.
One possible option i presented in this pull request #5913
The text was updated successfully, but these errors were encountered: