Migrating to Modern Angular
summary
Shows concrete commands and outcomes for modernizing Angular code: run ng update to bump core/CLI and auto-apply breaking-change migrations; run ng g @angular/core:standalone to convert declarations and optionally bootstrap the app; use ng g @angular/core:inject, control-flow, signal-input and signal-queries schematics to replace constructor injection, template control structures and inputs; ng-extension provides extra schematics (27K weekly installs) for self-closing tags, SFC and route lazy-loading; workflows use WebStorm run configs or VS Code tasks for incremental, per-file migrations.
AI-written summary · about
chapters (20)
- 0:00Introduction to modern Angular
- 1:52Why migrate to modern Angular
- 4:21Automated migrations as a solution
- 5:27Using ng update for core migrations
- 6:50Optional Angular migrations
- 8:34Migrating to standalone components
- 10:39Lazy loading routed standalone components
- 11:42Migrating to inject function
- 13:29Migrating to new control flow
- 14:55Migrating to signals
- 16:24Migrating to signal inputs
- 17:50Incremental signal input migration
- 18:31Migrating to signal queries
- 19:12Migrating to output signals
- 19:33Converting to self-closing tags
- 20:17Migrating to single file components
- 21:01Incremental migration workflow
- 22:48Handling third-party library constraints
- 23:52Migration overview and resources
- 24:13Conclusion and Q&A
