~/talk

Improving angular material table performance with pagination

Talkat ngVikings 2019 · 2019-05-27..05-28· [angular]
github:czd
slides:none on file

A client page freezes once a simple Material table swallows 2,000 rows; the fix is rendering fewer DOM nodes by adding the Angular Material paginator, wiring it with ViewChild and ngAfterViewInit, and switching the table to MatTableDataSource so paging slices data for you. Implementation shows ten rows per page, measurable UI responsiveness improvement, and a complete solution for translated labels by overriding MatPaginatorIntl to use the app’s translate service.

AI-written summary · about

  1. 0:00Start
  2. 3:45Getting started
  3. 4:53Get reference to the paginator in the template
  4. 5:40GREAT SUCCESS!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.