~/talk

Software Patterns and Design with AngularJS

Talkat ng-europe 2014 · 2014-10-22..10-23· [angular, frontend-architecture]
slides:none on file

Focus lies on Angular 1.x with concrete claims: services are injected singletons used as caches facades and factories (providers are injected singletons too), data binding implements the observer pattern, and directives can use a directive proxy object or polymorphic models to render heterogeneous items. Examples and tools include a wizard component driven by a proxy object, ng-include for template-per-model rendering, Restangular and ECMA6 Weak Map as implementation notes, and anti-patterns like huge controllers, modal-global state, and prototype-chain coupling.

AI-written summary · about

  1. 0:00Start
  2. 9:04Data binding • Data binding is an implementation of the traditional observer pattern. o Prevents tight coupling between independent parts
  3. 10:58Inheritance for services & controllers Standard JavaScript prototypal inheritance can be used with services and controllers.
  4. 12:15Inheritance for services & controllers • Standard JavaScript prototypal inheritance can be used with services and controllers. • Customize services in a common library Modify Ul component behavior by extending
  5. 13:18Thick Models • Models are a good place to encapsulate common domain logic
  6. 17:22Polymorphism and Directives We can move responsibilities normally belonging to the directive into the model.
  7. 21:05"Forgot About Dialogs" Global State Using services to store "per-page" state and clearing upon route change.
~/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.