Skip to main content

Lists, tables, data and network performance

Learn Lists, tables, data and network performance (Module 18 · Angular Performance Optimization, Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Big lists and repeated requests List rendering optimization : every row is DOM, and DOM is expensive. With @for you must write track : it tells Angular how to recognise an item (by id) so changed lists reuse existing DOM nodes instead of rebuilding them. It is like a teacher recognising students by name instead of re-seating the whole class every time one arrives. Reducing duplicate API requests : if five components ask for the same data, fetch once and share the result.

More lessons in Module 18 · Angular Performance Optimization