I'm using angular animation on a list component, a slide-in-out animation. It works fine when the list is short, but when I have more then 50 items on the list, the animation is laggy. What is the cause of that? how can it be solved?
Asked
Active
Viewed 2,276 times
4
-
Did you modified the height property of you list during your animations? – NicuVlad Jun 28 '18 at 06:14
1 Answers
7
I found the source to the performance issue.
Added changeDetection: ChangeDetectionStrategy.OnPush
to the root component, now everything is fast as it used to be, I hope that new issues won't be rising now :)

sangress
- 599
- 5
- 11
-
1This gave me some good improvements to the app. Not an amazingly fast improvement, but it was faster. Thanks! – Daniel Hair Jul 03 '17 at 15:27