~/talk

Using Angular 2 Components in a Non Angular app

Talkat UtahJS Conf 2017 · on Wednesday, 2017-09-27· [angular, javascript]
links:none on file
slides:none on file

Claim: migrate a 700k-line jQuery app to Angular piecemeal by dynamically loading Angular components into the existing JS shell, cutting dedicated rewrite effort to regular sprints. Implementation uses entryComponents, DOM insertion, ComponentFactoryResolver to create ComponentRef, applicationRef.attachView to enable change detection, and public interfaces or Google Closure-style events for JS↔Angular comms. Team reports it works in production with no significant perf cost when using ahead-of-time compilation.

AI-written summary · about

  1. 0:00Introduction
  2. 0:58What do I do
  3. 2:58piecemeal migration
  4. 3:49loading static components
  5. 6:11component factory
  6. 8:16attached view
  7. 8:59load component
  8. 9:26how it works
  9. 11:43why is it helpful
  10. 11:53why is it not helpful
  11. 12:07inputs
  12. 12:41Wrap up
~/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.