Commit 8ba507c
feat(angular): make standalone imports default (#31217)
## 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?
- [X] Yes
- [ ] No
BREAKING CHANGE: Public import paths have changed.
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`.
---------
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>1 parent a35e13d commit 8ba507c
163 files changed
Lines changed: 175 additions & 146 deletions
File tree
- core
- packages/angular
- lazy
- src
- directives
- angular-component-lib
- control-value-accessors
- overlays
- validators
- providers
- schematics
- add
- files/root/theme
- utils
- scripts
- test
- apps
- ng19/src/app/standalone/programmatic-modal
- modal
- ng21/src
- ng22/src
- base/src
- app
- lazy
- accordion
- alert
- app-lazy
- form-controls/range
- home-page
- keep-contents-mounted
- modal-dynamic-wrapper
- modal-example
- modal-inline
- modal-sheet-inline
- modal
- nested-outlet-page
- overlays-inline
- popover-inline
- providers
- router-link-page
- router-link
- routing-standalone
- searchbar
- slides
- tabs-basic
- tabs-global
- tabs-lazy
- tabs-tab1-nested
- tabs-tab1
- tabs
- template-form
- textarea
- version-test
- bind-component-inputs
- view-child
- virtual-scroll-detail
- virtual-scroll
- standalone
- action-sheet-controller
- app-standalone
- back-button
- button
- home-page
- icon
- inputs
- modal-child-route
- modal-custom-injector
- modal
- modal-dynamic-wrapper
- modal-options-generic
- modal
- modal-sheet-inline
- modal
- overlay-controllers
- popover-custom-injector
- popover
- popover
- programmatic-modal
- providers
- refresher
- reorder-group
- router-link
- split-pane
- swipe-gesture-disabled
- tabs-basic
- tabs-search-params
- tabs
- validation
- checkbox-validation
- input-validation
- radio-group-validation
- select-validation
- textarea-validation
- toggle-validation
- value-accessors
- checkbox
- datetime
- input-otp
- input
- radio-group
- range
- searchbar
- segment
- select
- textarea
- toggle
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
File renamed without changes.
0 commit comments