I have a component that displays a user interface similar to a spreadsheet. There are many elements with two-way binding [(ngModel)] to a mutable object.
As soon as the number of inputs increases to 100 or so, the user interface becomes sluggish. The profiler shows a lot of time in decimal format (decimal pipe).
I can think of several possible solutions:
- Using immutable objects somehow?
- Configuring two-way data binding?
I don't use ChangeDetectionStrategy OnPush, but I'm curious how this will help and how to implement it using [(ngModel)] on the html inputs.
source share