~/talk

Kick Your Components up a Notch with Directives BAM!

Talkat ng-conf 2017 · 2017-04-05..04-07· [angular]
github:Brocco
slides:none on file

Shows how Angular attribute directives deliver concrete behavior: uses hostBinding to toggle element properties, hostListener to handle clicks, and EventEmitter (Output) to emit changes; implements dependency injection of a security service, subscribes/unsubscribes to role observables, and exposes a lockdown attribute that sets the disabled property on buttons. The example repo demonstrates the directive applied across components to enable/disable actions based on roles and it works live in the demo.

AI-written summary · about

  1. 0:00Start
  2. 1:37Types of Directives
  3. 2:43Examples of Usage with Directives
  4. 5:27Color Cycle
  5. 5:41Host Listener
  6. 6:45Exposing Events
  7. 7:02Event Emitter
  8. 12:00Host Binding
~/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.