Skip to content

feat(modal): add IonModalToken for injecting modal elements in Angular components #30474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: feature-8.7
Choose a base branch
from

Conversation

ShaneK
Copy link
Member

@ShaneK ShaneK commented Jun 11, 2025

Issue number: resolves #internal


What is the current behavior?

Currently, we provide no injection access to angular modals, which makes it difficult to connect to their events normally.

What is the new behavior?

This is an attempt to allow easier programmatic access to the internals of injected modals.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 8.6.2-dev.11749830167.1460aa73

@ShaneK ShaneK requested a review from a team as a code owner June 11, 2025 13:48
@ShaneK ShaneK requested a review from gnbm June 11, 2025 13:48
Copy link

vercel bot commented Jun 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 8:05pm

@ShaneK ShaneK changed the title feat(modal): add IonModalToken for injecting modal element in Angular components feat(modal): add IonModalToken for injecting modal elements in Angular components Jun 11, 2025
Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to include tests for this? Or at the very least add it to a test page like angular/test/base/src/app/standalone/ and angular/test/base/src/app/lazy/?

Other than that, no issues!

@thetaPC thetaPC removed the request for review from gnbm June 17, 2025 16:03
Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brandyscarney
Copy link
Member

Shouldn't this go into feature-8.7 since it is a feat?

Copy link
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great solution! My only feedback is a spelling issue in the tests.

Also my previous comment about changing the branch this targets to feature-8.7 since this is a feature. 👍

@ShaneK ShaneK changed the base branch from main to feature-8.7 June 23, 2025 19:08
@ShaneK
Copy link
Member Author

ShaneK commented Jun 23, 2025

Changed target branch and fixed the spelling of programmatic, thanks!

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.

3 participants