~/talk

Advanced UI, Plugins and Components in AngularJS

Talkat Spotlight: AngularJS 2014 · on Saturday, 2014-06-07· [angular]
slides:none on file

Shows how to turn UI into isolated, testable AngularJS components by moving rendering into directives and data into small controllers, demonstrates a Canadian postal‑code validator directive, a tic‑tac‑toe grid built with transcludeElement to clone templates, and an expand directive verified with Karma using a templateCache preprocessor. Uses ngMessages for prioritized errors, exercises debugging with angular.element($0). All examples run and are unit tested, proving the pattern scales and reduces fat controllers.

AI-written summary · about

  1. 0:00Start
  2. 2:59What is bad UI
  3. 8:00Isolation is the answer
  4. 8:29Tic-tac-toe
  5. 9:07Pro: Simple HTML Code Con Scope data is form-fitted Con Code is too terse Con Unable to extend
  6. 12:36Pro: High-level language Pro: Simple Scope Data Con Complexity of the directive
  7. 14:46ControllerAs
  8. 15:38Directive Controllers
  9. 16:16Example 1...
  10. 20:15Pro: Communication in the template Con Verbose ControllerAttributes
  11. 21:54Pro: Inheritance in the template and directive Con Obscure JS code
  12. 27:26File Structure
  13. 31:43Testing Components
~/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.