~/talk

Implementing advanced DOM manipulation scenarios

Talkat NGConf 2018 · on Thursday, 2018-04-19· [angular, web-platform]
links:none on file
slides:none on file

Workshop shows concrete fixes and demos: a directive replaces in-component DOM fiddling to call elementRef.nativeElement.setAttribute, then swaps that for Renderer.setAttribute to stay platform independent; removing raw DOM nodes proves unsafe because change detection still runs and views linger (surprising result); templates + a view container are used with ViewContainerRef.createComponent and createEmbeddedView to add, remove and optimize dynamic components; all examples are built and run live so the techniques actually work.

AI-written summary · about

  1. 0:00Start
  2. 6:54Template Reference Variables
  3. 7:24Element Trap
  4. 16:55Rendering and Presentation Logic
  5. 17:23Rendering Logic
  6. 29:43Renderer
  7. 30:27Task 1c
  8. 32:00How Would You Apply Focus with Render -
  9. 40:28Modifying Existing Dom Structure
  10. 46:02Inject Element Ref and Renderer into the Constructor
  11. 1:01:13View Container
  12. 1:02:17View Container Api
  13. 1:04:08Structure of Directives
  14. 1:25:58What Happens if We Have More than One Ng Template
  15. 1:29:09Dynamic Components Rendering
  16. 1:29:58Why Do We Need Dynamic Components
  17. 1:30:42Dynamic Components
  18. 1:30:54Embedded View
  19. 1:35:39Implementation
~/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.