~/talk

Building a dynamic SPA website with Angular

Talkat AngularCamp 2017 · on Thursday, 2017-07-06· [angular, developer-experience, frontend-architecture]

Concrete solution for using a CMS to drive an Angular single page app while keeping AOT compilation and server rendering: fetch per-URL JSON routes in a resolver, map template names to real components via a component factory resolver, create components dynamically and register them in entryComponents, use a state transfer service to serialize server-rendered data to the client, and add a link-intercept host listener for CMS rich text. Result: working repo, initial paint drops ~0.5s → ~0.25s and bundle from ~4MB → ~200KB.

AI-written summary · about

  1. 0:00Start
  2. 3:06Bootstrapping multiple applications
  3. 4:08Initial data
  4. 6:07Single Page Application
  5. 8:50Two issues with that approach
  6. 10:29Get the data in a resolve
  7. 13:30The problem cascades
  8. 13:46Then came rc4
  9. 14:05The theory
  10. 23:23The idea
~/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.