~/talk

The magic of template reference variables

Talkat NGConf 2018 · on Friday, 2018-04-20· [angular]
slides:none on file

Shows that template reference variables using #ref syntax give direct access to the HTML element or to a component instance so templates can call methods or read properties without ngModel, documents that JIT allows access even to private/protected members while AOT can block that, explains how directives expose names via exportAs and how those names bind to form validation, and demonstrates retrieving the same references in TypeScript with @ViewChild so the examples actually run and the feature works end to end.

AI-written summary · about

  1. 0:00Intro
  2. 0:18Story of this start
  3. 0:50Abstract Syntax
  4. 1:09Using Abstract Syntax
  5. 1:47Abstract Syntax on Components
  6. 2:35Syntax on Directives
  7. 3:26How does it work
  8. 3:44Source code
  9. 5:09Summary
  10. 5:40Outro
~/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.