~/talk

Deep Dive into Custom Directives

Talkat ng-conf 2014 · 2014-01-16..01-17· [angular]
slides:none on file

Team reports 146 directives written and shows working examples: a select-all-on-focus behavioral directive, a my-social-buttons template, and a my-search-box component that uses isolate scope with =/@/& bindings to pass data and callbacks. Performance fix uses a lazy-load directive (priority, terminal, compile/transclude) to defer heavy DOM/linking and preload templates in script tags, cutting startup work to a single watcher until needed. Recommends one module per directive and reading Angular source for guidance.

AI-written summary · about

  1. 0:00Introduction to custom directives
  2. 1:50Why write custom directives
  3. 3:14Built-in Angular directives
  4. 5:02When to use directives
  5. 6:25Creating a directive module
  6. 7:49Directive link function demo
  7. 9:56Compile vs link functions
  8. 10:39Restrict property explained
  9. 11:20Building a widget directive
  10. 13:27Isolated scope in directives
  11. 15:54Benefits of isolated scope
  12. 17:16Scope binding types
  13. 18:20Passing data via attributes
  14. 20:15Compile function deep dive
  15. 22:15Lazy loading directives
  16. 24:44Transclusion explained
  17. 28:16What is transclusion
  18. 31:29Advanced directive concepts
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.