kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
83 stars 22 forks source link

Deps: Upgrade to Ionic 7.6 and use Ionic Standalone components #3349

Closed rsreimer closed 5 months ago

rsreimer commented 7 months ago

Which issue does this PR close?

This PR closes #3342

What is the new behavior?

Does this PR introduce a breaking change?

Are there any additional context?

Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Reminders

Review

When the pull request has been approved it will be merged to develop by Team Kirby.

RasmusKjeldgaard commented 6 months ago

One nice addition to this PR would be to export something like the following from e.g. our /shared/ entry.

export const provideKirby = (): Provider[] => {
  // config object is defined in kirby-ionic-module, should probably be moved to a shared location
  return provideIonicAngular(config);
};

Then Standalone-based applications should be able to use Kirby out of the box:

bootstrapApplication(AppComponent, {
  providers: [provideKirby()],
}).catch((err) => console.error(err));