Skip to content

feat(angular): add standalone providers, route strategy, component binding provider - #27997

Merged
liamdebeasi merged 5 commits into
FW-4612from
config-refactor
Aug 15, 2023
Merged

feat(angular): add standalone providers, route strategy, component binding provider#27997
liamdebeasi merged 5 commits into
FW-4612from
config-refactor

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Aug 15, 2023

Copy link
Copy Markdown
Contributor

Issue number: N/A


What is the current behavior?

While working on the provideIonicAngular provider I noticed the following things:

  1. The standalone module did not export the IonicRouteStrategy class for routing.
  2. The standalone module did not export providers such as Config or ActionSheetController.
  3. The component input binding provider could exist in the common module since I was just copy and pasting the exact implementation multiple times.

What is the new behavior?

  • Moved IonicRouteStrategy to @ionic/angular/common. Both @ionic/angular and @ionic/angular/standalone re-export this class.
  • Exported all providers minus AngularDelegate from @ionic/angular/standalone. The AngularDelegate will be handled in the PR for FW-4766.
  • Moved the component input binding provider to @ionic/angular/common. @ionic/angular now imports that logic from @ionic/angular/common. The standalone implementation will be handled in the PR for FW-4766. This change also reduces the amount of APIs we need to export from the common module.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions Bot added the package: angular @ionic/angular package label Aug 15, 2023
@liamdebeasi liamdebeasi changed the title Config refactor feat(angular): add standalone providers, route strategy, component binding provider Aug 15, 2023
@liamdebeasi
liamdebeasi marked this pull request as ready for review August 15, 2023 15:28
@liamdebeasi
liamdebeasi merged commit c65e08d into FW-4612 Aug 15, 2023
@liamdebeasi
liamdebeasi deleted the config-refactor branch August 15, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants