Skip to content

feat(angular): make standalone imports default - #31217

Merged
OS-jacobbell merged 10 commits into
major-9.0from
FW-7273
Jul 1, 2026
Merged

feat(angular): make standalone imports default#31217
OS-jacobbell merged 10 commits into
major-9.0from
FW-7273

Conversation

@OS-jacobbell

Copy link
Copy Markdown
Contributor

What is the current behavior?

The default path for imports is @ionic/angular and imports the lazy-loaded angular components. @ionic/angular/standalone imports the standalone components.

What is the new behavior?

The default path, @ionic/angular, imports standalone components. Lazy-loaded components are imported from @ionic/angular/lazy.

Does this introduce a breaking change?

  • Yes
  • No

Applications that use lazy-loaded angular components will need to update their import paths from @ionic/angular to @ionic/angular/lazy.
Applications that use standalone angular components will need to update their import paths from @ionic/angular/standalone to @ionic/angular.

Other information

Ionic starters will need their import paths updated to match these changes.

@OS-jacobbell
OS-jacobbell requested a review from a team as a code ownerJune 15, 2026 20:15
@vercel

vercelBot commented Jun 15, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
ionic-frameworkReadyReadyPreview, CommentJul 1, 2026 3:00pm

Request Review

@github-actionsgithub-actionsBot added package: core @ionic/core package package: angular @ionic/angular package labels Jun 15, 2026
@OS-jacobbellOS-jacobbell changed the title Fw 7273refactor(angular): make standalone imports defaultJun 17, 2026

@ShaneKShaneK left a comment

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.

Awesome work! Just a few problems below, but I also noticed a couple of other problems outside the diff scope:

  • BREAKING.md wasn't updated, and it definitely should be for this. This is a massive breaking change. Worth a migration note: @ionic/angular/standalone becomes @ionic/angular, and @ionic/angular becomes @ionic/angular/lazy. The existing Module Resolution section also uses @ionic/angular/standalone as its example subpath (BREAKING.md:203), which no longer exists after this change.
  • The Project Structure section in packages/angular/README.md (lines 96-114) is now stale. It still describes a src submodule imported from @ionic/angular and standalone imported from @ionic/angular/standalone, both reversed and renamed now.

Comment threadpackages/angular/schematics/add/index.ts

@ShaneKShaneK left a comment

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.

Awesome! Thanks! Two minor doc change requests, but not blocking

Comment threadBREAKING.md
Comment threadpackages/angular/README.md Outdated
Comment threadpackages/angular/test/base/src/app/standalone/standalone.component.ts Outdated
Comment threadpackages/angular/test/base/src/app/app.module.ts

@thetaPCthetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@brandyscarneybrandyscarney left a comment

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.

Looks good to me!

Comment threadBREAKING.md
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
@OS-jacobbellOS-jacobbell changed the title refactor(angular): make standalone imports defaultfeat(angular): make standalone imports defaultJul 1, 2026
@OS-jacobbell
OS-jacobbell merged commit 8ba507c into major-9.0Jul 1, 2026
51 checks passed
@OS-jacobbell
OS-jacobbell deleted the FW-7273 branch July 1, 2026 16:37
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular@ionic/angular packagepackage: core@ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@OS-jacobbell@ShaneK@brandyscarney@thetaPC