~/talk

Up-close with Structural Directives

Talkat NG-BE 2018 · 2018-12-06..12-07· [angular, frontend-architecture]
github:ashB100
slides:none on file

Explains how TemplateRef.createEmbeddedView and ViewContainerRef actually create and insert embedded views, shows how the micro‑syntax maps into directive inputs and the context object, and demos using ngTemplateOutlet instead of manual insertion. Gives concrete use cases—permission gating, feature flags, route‑dependent side nav, carousel behavior—and notes that custom structural directives can be typed and injected with services; the talk stops short of a full built example but the mechanics and APIs are spelled out.

AI-written summary · about

  1. 0:00Intro
  2. 1:47Structural Directives are cool
  3. 3:30Behind the scenes
  4. 6:02Templates are instructions on how to render
  5. 7:51Tools for working with views
  6. 11:04Use ng container for view containers
  7. 12:14Two kinds of views in View Containers
  8. 17:03View children vs Content children
  9. 17:283 Steps to create embedded views
  10. 17:38Place an anchor element
  11. 18:20Use View Query to access view container
  12. 19:38Use ViewContainer Ref API to create view
  13. 24:10Context object & Template Input Variables
  14. 26:07Typing context object
  15. 27:02Input properties & Binding Keys
  16. 29:17Binding string with microsyntax
  17. 31:58Takeaways
~/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.