Skip to content

docs(angular): document Angular 21 support and bump playground scaffolding to v21#4529

Merged
ShaneK merged 4 commits into
major-9.0from
feat/angular-21
Jun 5, 2026
Merged

docs(angular): document Angular 21 support and bump playground scaffolding to v21#4529
ShaneK merged 4 commits into
major-9.0from
feat/angular-21

Conversation

@ShaneK
Copy link
Copy Markdown
Member

@ShaneK ShaneK commented Jun 2, 2026

This PR is a follow-up PR to the main repo's Angular 21 PR.

What's new?

This PR adds a v9 row to the support matrix (Angular 18 through 21.x, TypeScript 5.4+) with a footnote explaining that Angular 21 itself requires TypeScript 5.9+.

We're also rewriting the Angular section of the v9 upgrade guide to state v9 supports Angular 18 through 21 and that 16 and 17 are dropped.

Along with that, we also added a migration guide for the breaking changes we added.

⚠️ Note: Before this branch is merged into main, we'll need to swap the dev builds to v9 builds ⚠️

@ShaneK ShaneK requested a review from a team as a code owner June 2, 2026 16:58
@ShaneK ShaneK requested review from brandyscarney and removed request for a team June 2, 2026 16:58
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ionic-docs Ready Ready Preview, Comment Jun 5, 2026 8:36pm

Request Review

Copy link
Copy Markdown
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShaneK
Copy link
Copy Markdown
Member Author

ShaneK commented Jun 5, 2026

Good catch! Did the updates in 6438a64

Comment thread docs/angular/overview.md
## Angular Version Support

Ionic Angular v8 supports Angular versions 16 and above. For detailed information on supported versions and our support policy, see the [Ionic Angular Support Policy](/docs/reference/support#ionic-angular).
Ionic Angular v9 supports Angular versions 18 through 21. For detailed information on supported versions and our support policy, refer to the [Ionic Angular Support Policy](/docs/reference/support#ionic-angular).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make the refer to change on the versioned docs too so this overview page stays consistent:

Ionic Angular v8 supports Angular versions 16 and above. For detailed information on supported versions and our support policy, see the [Ionic Angular Support Policy](/docs/reference/support#ionic-angular).

Ionic Angular v7 supports Angular versions 14 through 17. For detailed information on supported versions and our support policy, see the [Ionic Angular Support Policy](/docs/reference/support#ionic-angular).

Ionic Angular v6 supports Angular versions 12 through 15. For detailed information on supported versions and our support policy, see the [Ionic Angular Support Policy](/docs/reference/support#ionic-angular).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: c165caa

Copy link
Copy Markdown
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! One request on versioned docs. 👍

@ShaneK ShaneK force-pushed the feat/angular-21 branch from c165caa to 9a990ae Compare June 5, 2026 20:32
@ShaneK ShaneK merged commit 877fe7a into major-9.0 Jun 5, 2026
4 checks passed
@ShaneK ShaneK deleted the feat/angular-21 branch June 5, 2026 20:38
ShaneK added a commit to ionic-team/ionic-framework that referenced this pull request Jun 5, 2026
Issue number: resolves #30907

---------

## What is the current behavior?

Ionic Angular only currently supports Angular 16-20

## What is the new behavior?

Ionic Angular now supports Angular 18 through 21 and drops 16 and 17.
The ng16/ng17 test apps are removed, an ng21 app is added, and the
tsconfigs are tightened for the 18+ minimum.

`autocorrect` on `ion-input` and `ion-searchbar` becomes a `boolean`
(default `false`), mapped internally to the native `'on'`/`'off'`
attribute. This is required by TypeScript 5.9, which is required by
Angular 21. It is the primary breaking change that forced this into a
major version release of Ionic Framework.

Also bundles v9 housekeeping: `@stencil/core` bumped to 4.43.5 and
TypeScript 5.9 in the React and Vue test apps.

## Does this introduce a breaking change?

- [x] Yes
- [ ] No

The following changes are required for migration:
- Apps on Angular 16 or 17 must upgrade to 18 or later.
- Existing NgModule projects upgrading to Angular 21 must add
`provideZoneChangeDetection()` to `bootstrapModule`'s
`applicationProviders` in `main.ts`. `ng-add` only patches standalone
`app.config.ts`, not `main.ts`, so the NgModule path is manual
(documented in the schematic's JSDoc).
- `autocorrect` now takes `true`/`false` instead of `'on'`/`'off'`.
Replace `autocorrect="on"` with `[autocorrect]="true"` and
`autocorrect="off"` (or the default) with `false`.


## Other information

Preview:
- Autcorrect (no visual difference, just it's not broken despite the new
type): [input
basic](https://ionic-framework-git-feat-angular-21-support-ionic1.vercel.app/src/components/input/test/basic)
- [Angular
21](https://ionic-framework-git-feat-angular-21-support-ionic1.vercel.app/angular/)


Current dev build (2025-06-02):
```
8.8.9-dev.11780414486.1df2bd72
```

Docs PR: ionic-team/ionic-docs#4529

---------

Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants