Skip to content

feat(angular): update lazy and standalone import paths - #1881

Merged
OS-jacobbell merged 4 commits into
major-9.0from
FW-7606
Jul 16, 2026
Merged

feat(angular): update lazy and standalone import paths#1881
OS-jacobbell merged 4 commits into
major-9.0from
FW-7606

Conversation

@OS-jacobbell

Copy link
Copy Markdown
Contributor

Description

Ionic Framework v9 makes standalone components the default for Angular and changes the import paths: @ionic/angular -> @ionic/angular/lazy and @ionic/angular/standalone -> @ionic/angular. This PR updates the starter apps to use these new import paths.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Platforms Affected

  • Android
  • iOS
  • Web

Notes / Comments

The @ionic/angular dev build version specified in package.json has been bumped to a build with the import path updates. These will need to be changed to a 9.x build before merging major-9.0 branch into main.

@OS-jacobbell
OS-jacobbell requested a review from a team as a code owner July 14, 2026 17:34
@OS-jacobbell
OS-jacobbell requested review from gnbm and removed request for a team July 14, 2026 17:34
Comment thread angular-standalone/base/package.json
Comment thread angular/official/blank/src/app/app.module.ts

@ShaneK ShaneK 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! And good job finding that vscode import issue too!

@OS-jacobbell
OS-jacobbell merged commit af7a05e into major-9.0 Jul 16, 2026
30 checks passed
@OS-jacobbell
OS-jacobbell deleted the FW-7606 branch July 16, 2026 16:47
@luisbytes

Copy link
Copy Markdown
Contributor

@ShaneK Given this change, we might want to consider what I did in this PR (#1874) for Ionic v9. We would need to adjust settings.json for both the standalone and module templates to account for the updated import paths.

Alternatively, if viable, it might be worth considering publishing the Ionic library itself (currently @ionic/angular) as independent packages for standalone and modules. This would completely avoid the need to manually exclude paths in the editor.

Additionally, since some users might prefer other code editors, they would have to figure out an equivalent configuration for their setup. As far as I know, there is currently no reference to this VS Code configuration in the official documentation, so addressing this—either by splitting the package or documenting the editor settings—would prevent a lot of friction.

@luisbytes

Copy link
Copy Markdown
Contributor

If needed, I'd be happy to open a PR to adjust the settings.json for major v9.

@ShaneK

ShaneK commented Jul 16, 2026

Copy link
Copy Markdown
Member

@luisbytes was it not properly adjusted in the last commit? f4dd16e

Or was something missed?

@luisbytes

Copy link
Copy Markdown
Contributor

@ShaneK Yes, a couple of things were missed:

  • Standalone template: It is still missing the exclusion for the @ionic/angular/lazy path.
  • Modules template: It needs a configuration similar to the one in my PR to exclude the standalone paths, since those are now the defaults.

If you'd like, I can open a PR to get both templates fully aligned.

@ShaneK

ShaneK commented Jul 16, 2026

Copy link
Copy Markdown
Member

@luisbytes That would be great, I'd appreciate it! Thanks for bringing this to our attention!

ShaneK added a commit that referenced this pull request Aug 19, 2026
* feat(many): migrate react-vite, vue-vite, and angular starters to Ionic v9 (#1880)

* feat(react-vite): migrate starters to react router 6

* feat(vue-vite): migrate starters to ionic v9 and vue router 5

* feat(angular): migrate starters to ionic v9, angular 22, zoneless signals, and vitest

* ci: bump test matrix to node 22 for angular 22 starters

* fix(angular): capitalize sidemenu folder route so page title renders Inbox not inbox in the same way the other test apps do it

* feat(angular): update lazy and standalone import paths (#1881)

* feat(many): target @ionic/* ^9.0.0 and finalize starters for the v9 release

* refactor(angular): drop redundant provideZonelessChangeDetection from both Angular starters

---------

Co-authored-by: OS-jacobbell <228905018+OS-jacobbell@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