~/talk

"Simpler Enterprise Angular Components with Smart Directives"

Talkat Frontrunners 2024 · on Friday, 2024-03-08· [angular, frontend-architecture]
slides:none on file

A design pattern called smart directives extracts observable and store logic out of overloaded smart components so page components only handle layout; implemented on a TasteTrove demo with Angular 17, NGXS stores, Tailwind, standalone components and onPush change detection. One smart component grew to ~1,000 lines and converting to directives removes hundreds of lines, makes selector streams reusable and cascable, and works in practice, with tradeoffs around unclear input/output ownership and flaky ngOnChanges behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49Demo app overview
  3. 3:14State management journey
  4. 7:28Smart component limits
  5. 8:33Live demo
  6. 12:45Q&A
  7. 14:17Smart directives concept
  8. 15:19Code conversion
  9. 19:54Cascading smart directives
  10. 22:20Benefits of smart directives
  11. 23:02Challenges with Angular
  12. 24:30Testing smart directives
  13. 26:17Closing
~/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.