Skip to content

Commit 8ba507c

Browse files
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BREAKING.md

Lines changed: 5 additions & 1 deletion

core/stencil.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const getAngularOutputTargets = () => {
3030
return [
3131
angularOutputTarget({
3232
componentCorePackage,
33-
directivesProxyFile: '../packages/angular/src/directives/proxies.ts',
34-
directivesArrayFile: '../packages/angular/src/directives/proxies-list.ts',
33+
directivesProxyFile: '../packages/angular/lazy/src/directives/proxies.ts',
34+
directivesArrayFile: '../packages/angular/lazy/src/directives/proxies-list.ts',
3535
excludeComponents,
3636
outputType: 'component',
3737
}),

packages/angular/.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ dist
22
scripts
33
test
44
proxies.ts
5-
src/directives/proxies-list.ts
5+
lazy/src/directives/proxies-list.ts
66
**/*/angular-component-lib/utils.ts

packages/angular/README.md

Lines changed: 5 additions & 5 deletions

packages/angular/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = [
3232
// inferred project for them (the ts-eslint 8 equivalent of the old
3333
// createDefaultProgram option).
3434
projectService: {
35-
allowDefaultProject: ['src/ionic-core.ts', 'src/schematics/add/*.ts', 'src/schematics/utils/*.ts'],
35+
allowDefaultProject: ['lazy/src/ionic-core.ts', 'schematics/add/*.ts', 'schematics/utils/*.ts'],
3636
},
3737
tsconfigRootDir: __dirname,
3838
},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"lib": {
33
"entryFile": "src/index.ts"
4-
},
4+
}
55
}
File renamed without changes.

packages/angular/src/directives/angular-component-lib/utils.ts renamed to packages/angular/lazy/src/directives/angular-component-lib/utils.ts

File renamed without changes.

packages/angular/src/directives/control-value-accessors/boolean-value-accessor.ts renamed to packages/angular/lazy/src/directives/control-value-accessors/boolean-value-accessor.ts

File renamed without changes.

packages/angular/src/directives/control-value-accessors/index.ts renamed to packages/angular/lazy/src/directives/control-value-accessors/index.ts

File renamed without changes.

0 commit comments

Comments
 (0)