Title: v23 Breaking Changes Dashboard · Issue #72191 · angular/angular · GitHub
Open Graph Title: v23 Breaking Changes Dashboard · Issue #72191 · angular/angular
X Title: v23 Breaking Changes Dashboard · Issue #72191 · angular/angular
Description: Tracking issue for breaking changes, TODO(v23) items, g3-only/3p-only flags, and ng update migrations targeted for Angular v23. Open PRs Targeted for major / breaking changes #71619 — fix(compiler): sanitize href and xlink:href bindings ...
Open Graph Description: Tracking issue for breaking changes, TODO(v23) items, g3-only/3p-only flags, and ng update migrations targeted for Angular v23. Open PRs Targeted for major / breaking changes #71619 — fix(compiler)...
X Description: Tracking issue for breaking changes, TODO(v23) items, g3-only/3p-only flags, and ng update migrations targeted for Angular v23. Open PRs Targeted for major / breaking changes #71619 — fix(compiler)...
Opengraph URL: https://github.com/angular/angular/issues/72191
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"v23 Breaking Changes Dashboard","articleBody":"Tracking issue for breaking changes, `TODO(v23)` items, `g3-only`/`3p-only` flags, and `ng update` migrations targeted for Angular v23.\n\n---\n\n## Open PRs\n\n### Targeted for major / breaking changes\n- [ ] #71619 — `fix(compiler): sanitize href and xlink:href bindings on SVG use elements`\n- [ ] #70808 — `feat(compiler): check that ng-container don't have class bindings` *(blocked; already enabled in g3 via #71844)*\n- [ ] #70573 — `fix(router): stop adding tabindex to non-anchor elements with routerLink`\n- [ ] #70425 — `fix(core): allow style attributes in DomSanitizer`\n- [ ] #70321 — `feat(router): allow string destination in RedirectCommand` *(blocked)*\n- [ ] #69898 *(Draft)* — `fix(core): Ensure JIT components also use OnPush by default` *(fixes #70262; already enabled in g3 via #71816)*\n- [ ] #68561 — `fix(router): Only bind 'undefined' to components if input was previously bound` *(blocked)*\n\n### Draft / under discussion\n- [ ] #71887 — `refactor(compiler): add g3-only checks for ng-content and ng-template bindings` *(step 1: `g3-only` rollout; step 2 for v23: remove `g3-only`/`3p-only` markers to enable in 3P, re-enable skipped tests, remove `ng_template_bindings` compliance test, and update `ng-content` structural directive compliance goldens)*\n- [ ] #71762 — `refactor(core): add g3-only overloads to preserve generic token types` *(step 1: `g3-only` rollout; step 2 for v23: remove `g3-only` flags to enable in 3P + ship `ng update` migration schematic; fixes #53894 and #48126)*\n\n---\n\n## `TODO(v23)` in the codebase\n\n### Compiler / Compiler-CLI\n- [ ] Enable `checkUnclaimedEventNames` and `checkUnknownElements` by default (`packages/compiler-cli/src/ngtsc/core/src/compiler.ts`)\n- [ ] Enable compile-time error for class bindings on `\u003cng-container>` (`packages/compiler/src/render3/r3_template_transform.ts`, tracked by #70808) and re-enable skipped tests in `packages/compiler/test/render3/r3_template_transform_spec.ts`\n- [ ] Remove `g3-only`/`3p-only` markers to disallow unsupported bindings and attributes on `\u003cng-content>` and `\u003cng-template>` (`packages/compiler/src/render3/r3_template_transform.ts`, `packages/compiler/src/typecheck/ops/scope.ts`), re-enable skipped tests in `packages/compiler/test/render3/r3_template_transform_spec.ts` and `packages/compiler-cli/src/ngtsc/typecheck/test/diagnostics_spec.ts`, remove the legacy `ng_template_bindings` compliance test (`packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/`), and update `ng-content` structural directive compliance tests/goldens (`ng_content_fallback`, `ng_content_with_structural_dir`, `self_closing_structural_directives`, `unique_template_function_names_ng_content`) (step 1 in #71887)\n- [ ] Throw error when a CSS variable has a single hyphen after `--global` in `namespaceCssVariable` (`packages/compiler/src/util.ts`) and re-enable skipped tests in `packages/compiler/test/shadow_css/shadow_css_spec.ts` and `packages/platform-browser/test/dom/dom_renderer_spec.ts`\n\n### Core\n- [ ] Remove `EnvironmentInjector.runInContext` (`packages/core/src/di/r3_injector.ts`) — *requires `ng-update` migration*\n- [ ] Remove `unwrapImgVideoSrcValue` workaround introduced for #71095 (`packages/core/src/render3/instructions/shared.ts`)\n- [ ] Remove `g3-only` flags on generic token inference overloads for `inject()`, `Injector.get()`, and signal queries (`packages/core/src/di/injector_compatibility.ts`, `packages/core/src/di/injector.ts`, `packages/core/src/authoring/queries.ts`), re-enable skipped tests in `packages/core/test/acceptance/di_spec.ts` and `packages/core/test/acceptance/authoring/signal_queries_spec.ts`, and remove temporary 3P tests (step 1 in #71762; closes #53894 and #48126) — *requires `ng-update` migration*\n\n### Router\n- [ ] Run `loadComponent` and `loadChildren` in root `EnvironmentInjector` in 3p (`packages/router/src/router_config_loader.ts`), remove unused `injector` parameter from `loadComponent`, and update `@angular/build` route extractor to pass `environmentInjector` and make it required\n- [ ] Run `redirectTo` functions in root `EnvironmentInjector` in 3p (`packages/router/src/recognize.ts`)\n- [ ] Run `canMatch` guards in root `EnvironmentInjector` in 3p (`packages/router/src/recognize.ts`, `packages/router/src/utils/config_matching.ts`)\n- [ ] Remove `data` from `ResourceContext` (or restrict to static data) in 3p (`packages/router/src/models.ts`, `packages/router/src/operators/setup_and_run_resources.ts`)\n\n---\n\n## `g3-only` / `3p-only` flags missing a `TODO(v23)`\n\n### Definitely missing `TODO(v23)`\n- [ ] `checkTypeOfNgTemplateBindings` in `packages/compiler-cli/src/ngtsc/core/src/compiler.ts` (enabled in g3, `false` in 3p; #69640 notes it is a temporary flag to be removed in the next breaking change window)\n- [ ] `Component` decorator JIT default `ChangeDetectionStrategy.OnPush` in `packages/core/src/metadata/directives.ts` (`OnPush` in g3, `Eager` in 3p; landed in g3 via #71816, tracked by #69898 / #70262)\n\n### Candidates to confirm target removal version (no `TODO(v23)` currently)\n- [ ] `ChangeDetectionStrategy.Default` in `packages/core/src/change_detection/constants.ts` (`3p-only`, deprecated in v22)\n- [ ] `Route.canLoad` in `packages/router/src/models.ts` (`3p-only`, deprecated in favor of `canMatch`)\n- [ ] Canonical template binding syntax (`bind-`, `on-`, `bindon-`) in `packages/compiler/src/render3/r3_template_transform.ts` (`3p-only`)\n\n---\n\n## Migrations (`ng update`) needed for v23\n\n- [ ] **Remove unclaimed property bindings on `\u003cng-template>`** — Open PR: #69718 (companion migration for enabling `checkTypeOfNgTemplateBindings` / #69640)\n- [ ] **`EnvironmentInjector.runInContext` → `runInInjectionContext`** — *No PR yet* (required before removing `runInContext` per `TODO(v23)` in `packages/core/src/di/r3_injector.ts`)\n- [ ] **Generic token type inference for `inject()`, `Injector.get()`, and signal queries** — *No PR yet* (companion migration schematic to reduce the blast radius of removing the `g3-only` flags from #71762 in v23, e.g. specializing unspecialized generic tokens like `inject(GenericService)` when assigned to a more specific generic type; related to #53894 and #48126)\n- [ ] **Evaluate migrations for other v23 breaking changes** (as needed):\n - `checkUnclaimedEventNames` / `checkUnknownElements` enabled by default (opt-out or cleanup schematic if needed)\n - JIT `OnPush` default (#69898) — check if additional migration coverage is needed for JIT-only components\n - `bind-` / `on-` / `bindon-` canonical syntax removal or `Route.canLoad` removal (if proceeding in v23)\n - Unsupported bindings/attributes on `\u003cng-content>` and `\u003cng-template>` (#71887) — evaluate if cleanup/migration coverage is needed (e.g. removing invalid bindings/attributes or fixing `selection`/`selector` typos on `\u003cng-content>`)\n\n","author":{"url":"https://github.com/JeanMeche","@type":"Person","name":"JeanMeche"},"datePublished":"2026-11-24T14:14:56Z","url":"https://github.com/angular/angular/issues/72191"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7f349a63-6055-a250-6157-611d510934d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8232:3422CF:8510C6:ABE01B:6B062D29 |
| html-safe-nonce | c5a8ab0ec03349ccdf8c0e23052b15fe07de6916f5fe5e76d3a603f2faa5b6cd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjMyOjM0MjJDRjo4NTEwQzY6QUJFMDFCOjZCMDYyRDI5IiwidmlzaXRvcl9pZCI6IjY5MjUzMjU1NDE4MzUxNTY3NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cfd07d4d78d1f5aef0d4a2bde1bf3677d409206201fed8ca3fa9745da940572f |
| hovercard-subject-tag | issue:6583778216 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/72191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/40b4ef7590fa870c491fa224fb6c53ff9f8d639e2b8971279e3da59e86ee1a32/angular/angular/issues/72191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40b4ef7590fa870c491fa224fb6c53ff9f8d639e2b8971279e3da59e86ee1a32/angular/angular/issues/72191 |
| og:image:alt | Tracking issue for breaking changes, TODO(v23) items, g3-only/3p-only flags, and ng update migrations targeted for Angular v23. Open PRs Targeted for major / breaking changes #71619 — fix(compiler)... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JeanMeche |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width