~/talk

Can't Touch This! What not to do to the DOM

Talkat ngVikings 2018 · 2018-03-01..03-02· [angular, web-platform, frontend-architecture]
links:none on file
slides:none on file

Argues that direct DOM calls break cross‑platform code and shows concrete fixes: use Renderer service to change element properties (browser, server Domino and web‑worker renderers implement it) and use ViewContainerRef/ng-template to create or remove views so the framework keeps view state consistent. Demonstrates a custom renderer that adds a created‑by‑angular class, shows web‑worker renderer relays messages, and proves removing a DOM node without the view causes lingering view nodes and a memory/leak and change‑detection cost.

AI-written summary · about

  1. 0:00Intro
  2. 1:31Topics we'll cover
  3. 2:10Presentation and rendering logic
  4. 3:58Correct mindset
  5. 5:06Using custom addAttribute directive
  6. 5:37Implementating addAttribute directive
  7. 6:08Platform dependence
  8. 6:39Native DOM API on different platforms
  9. 7:49Tools to work with DOM safely
  10. 9:26Renderer (Renderer2)
  11. 9:55Using Renderer service
  12. 11:15Rendering layer architecture
  13. 13:11Dedicated renderer Browser platform
  14. 14:04Rendering layer abstractions
  15. 16:42Working with DOM safely
  16. 17:24Unexpected behavior with Renderer
  17. 19:41Transforming Component to View
  18. 20:52DOM and View relationship
  19. 22:58View Container (ViewContainer Ref)
  20. 24:46Using templating and view container
  21. 27:19Conclusions
~/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.