Don’t try to use “self-closing”
or void tags for your directives.
Slide 61
Slide 61 text
Know where to use scope.$apply.
!
(And why.)
Slide 62
Slide 62 text
Read the fucking manual.
Slide 63
Slide 63 text
Don’t reimplement
existing directives.
Slide 64
Slide 64 text
Test.
Slide 65
Slide 65 text
Recap
Slide 66
Slide 66 text
… that directives are awesome
!
… how to build one
!
… how to manipulate the DOM
and add event listeners in its link function
!
… how to test a directive
you hopefully learnt
Slide 67
Slide 67 text
kthxbai
@rinpaku
abstraction.killedthecat.net
Slide 68
Slide 68 text
Writing Directives (Talk by Miško Hevery)
Resources
unrelated, but awesome:
Building 2048 in Angular