~/talk

Angular: Keeping it Fat, Dumb, and Happy: An Architectural Approach

Talkat RVA JavaScript Conf 2019 · on Friday, 2019-11-15· [angular, frontend-architecture]
links:none on file
slides:none on file

Recommendation: adopt an architecture where templates stay declarative and dumb (use ngIf at the highest level so children assume valid inputs), components act as thin controllers with specific handlers not reducers, and services become fat, specific units that hold processing and HTTP calls (avoid injecting HttpClient into components). Use RxJS async pipe for views and tap to capture observable values in the component. Prefer component decision logic (e.g., single‑ vs multi‑server switching) in the component and processing/mapping in services.

AI-written summary · about

  1. 0:00Introduction
  2. 0:22Core Angular concepts
  3. 1:05Fat dumb happy architecture
  4. 2:30Templates declarative and dumb
  5. 5:42Imperative vs declarative templates
  6. 7:49Dumb templates and coupling
  7. 9:35Smart and thin components
  8. 13:08Thin components and testability
  9. 14:12Component fatness decisions
  10. 16:39Components as simple as possible
  11. 17:01Container vs presentation components
  12. 18:47Async pipe and tap operator
  13. 20:32Presentation components explained
  14. 22:19Event handling in components
  15. 22:40Services fat and happy
  16. 24:04Component-specific services
  17. 25:30Happy services and state
  18. 27:15Stateful vs stateless services
  19. 29:22Service access and summary
~/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.