Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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!

@ShaneK ShaneK merged commit deb860e into feature-8.7 Jun 23, 2025
48 checks passed
@ShaneK ShaneK deleted the FW-6475 branch June 23, 2025 20:15
brandyscarney pushed a commit that referenced this pull request Jul 30, 2025
…r components (#30474)

Issue number: resolves #internal

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

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

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

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

## Does this introduce a breaking change?

- [ ] Yes
- [X] No

<!--
  If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
  2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

Dev build: `8.6.2-dev.11749830167.1460aa73`
brandyscarney pushed a commit that referenced this pull request Jul 30, 2025
…r components (#30474)

Issue number: resolves #internal

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

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

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

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

## Does this introduce a breaking change?

- [ ] Yes
- [X] No

<!--
  If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
  2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

Dev build: `8.6.2-dev.11749830167.1460aa73`
brandyscarney pushed a commit that referenced this pull request Jul 30, 2025
…r components (#30474)

Issue number: resolves #internal

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

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

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

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

## Does this introduce a breaking change?

- [ ] Yes
- [X] No

<!--
  If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
  2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

Dev build: `8.6.2-dev.11749830167.1460aa73`
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