Skip to content

Expose ComponentRef to dialog components - #27536

Merged
crisbeto merged 3 commits into
angular:mainfrom
crisbeto:27534/dialog-ref-component
Jul 31, 2023
Merged

crisbeto merged 3 commits into
angular:mainfrom
crisbeto:27534/dialog-ref-component

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Exposes then ComponentRef of the components rendered inside the CDK dialog, Material dialog and bottom sheet. Previously we didn't do it, because there wasn't much the user could do with the ComponentRef, but as of recently they're able to set the component's inputs which can be useful.

Fixes #27534.

crisbeto added 3 commits July 29, 2023 09:03
Exposes the `ComponentRef` to the component that is rendered inside of a CDK dialog container. This allows users to interact with the component's inputs.
Exposes the `ComponentRef` to the component that is rendered inside of a dialog container. This allows users to interact with the component's inputs.

Fixes angular#27534.
Exposes the `ComponentRef` to the component that is rendered inside of a bottom sheet container. This allows users to interact with the component's inputs.
@crisbeto crisbeto added P4 A relatively minor issue that is not relevant to core functions target: minor This PR is targeted for the next minor release merge: preserve commits When the PR is merged, a rebase and merge should be performed labels Jul 29, 2023
@angular-robot angular-robot Bot added the detected: feature PR contains a feature commit label Jul 29, 2023
@crisbeto crisbeto self-assigned this Jul 31, 2023
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jul 31, 2023
@crisbeto
crisbeto merged commit 956aec2 into angular:main Jul 31, 2023
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker detected: feature PR contains a feature commit merge: preserve commits When the PR is merged, a rebase and merge should be performed P4 A relatively minor issue that is not relevant to core functions target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(Dialog): Public API for dialog component ComponentRef

2 participants