I am creating a component which utilises a large number of styles (eg 10) [styles.xx] so the user can customise the component's appearance. In addition the component may be repeated in the parent component quite a few times (eg 10-20 times).
I've incorporated *ChangeDetectionStrategy.OnPush * to minimise the impact on performance. This may sound highly subjective I do notice when I scroll with the styles incorporated vs not have them there is slight sluggish in the scroll performance. My questions are: 1. By utilising a large number of dynamic styles in a repeated component can this impact performance? 2. What other strategies can use to minimise performance impact? I'm toying with using document.getElementsByClassName and the set attribute to change the styles on init, but hoping for an easier way utilising the ngstyles. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.