~/talk

Modernizing Large Frontends with Web Components

Talkat NDC London 2020 · 2020-01-27..01-31· [web-platform, frontend-architecture]
slides:none on file

Web Components act as an incremental migration path: write Angular components, turn them into Angular Elements with createCustomElement and customElements.define, bundle via Angular CLI (use ngx-build-plus to produce a single bundle), inject polyfills and the script into the AngularJS index.html, and replace leaf components one by one. Shared state uses vanilla JS singletons wrapped for Angular and AngularJS; watch polyfills, change‑detection coupling, and routing. This approach suits very large, high‑complexity apps and avoids a full rewrite.

AI-written summary · about

  1. 0:00Intro
  2. 2:49Choosing the right path is critical.
  3. 5:08Modern Frontends
  4. 5:48Single Page Applications (SPAs)
  5. 6:25DOM Manipulation
  6. 9:35What are Web Components?
  7. 10:03Use Cases
  8. 10:15Micro Frontends
  9. 10:56Shared Components
  10. 12:52Anatomy of a Custom Element
  11. 13:12Selector String
  12. 13:24JavaScript Class
  13. 13:38Options Object
  14. 14:55Bells & Whistles
  15. 15:19Lifecycle Methods
  16. 16:55HTML Templates
  17. 17:38It's complicated...
  18. 18:33Custom Element Libraries
  19. 20:26Stencil
  20. 22:07Modernization
  21. 25:35Why Angular Elements?
  22. 28:30Tightly Coupled
  23. 28:42Dependency Injection
  24. 31:48The Elements Upgrade Strategy
  25. 32:04Set Up Bottom-up components Create vanilla j5 services with wrappers Convert routing and remove Elements
  26. 33:03Setting Up Angular Elements
  27. 35:51Add Angular Elements
  28. 38:39Upgrading Components
  29. 41:14AngularJS 1.7+ Helpers
  30. 41:28ng-custom-element
  31. 46:22Tip: Group into Modules
  32. 46:38Sharing Data with Services
  33. 47:13Off-Roading with JS
  34. 47:31Wrap Shared JS Services
  35. 49:53Inputs & Outputs
  36. 51:39Wrapping Up the Upgrade
  37. 52:10Switch Routing
  38. 52:27Drop Elements
~/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.