Using Angular 2 Components in a Non Angular app
summary
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
chapters (12)
- 0:00Introduction
- 0:58What do I do
- 2:58piecemeal migration
- 3:49loading static components
- 6:11component factory
- 8:16attached view
- 8:59load component
- 9:26how it works
- 11:43why is it helpful
- 11:53why is it not helpful
- 12:07inputs
- 12:41Wrap up
related talks
05mMigrating a Portfolio of Front-End Apps to Angular
20mBuilding Platforms with Angular
23mUpgrading to Angular without ngUpgrade
20mUpgrading Enterprise Angular Applications
41mFrom .component() to @Component
42mHow Angular2 can improve your Angular1 apps today
24mGetting to Angular 2
20mEngineering Scalable Angular Components
