Experiencing an issue with the Angular view when loading the view for the second time.
Input:
- The view loads a list of 1500 items
- All 1500 items are displayed in a table using
ng-repeat
with a filter - No
$watch
is used in the view
Problem description:
- The view loads fine and works well without any performance issues the first time.
- Upon leaving the view after the first time, it takes 5-10 seconds.
- When returning to the view for the second time after step 2, it takes 30 seconds and 99% of that time is spent on scripting. Profiling this step reveals over 20000 listeners.
Questions:
- Any suggestions on what could be causing the performance issue in step 3?
- Is it advisable to display large amounts of data using
ng-repeat
?