Skip to content

fix(cdk/portal): add directives support to ComponentPortal#33142

Open
chintankavathia wants to merge 1 commit intoangular:mainfrom
chintankavathia:fix/component-portal-directives
Open

fix(cdk/portal): add directives support to ComponentPortal#33142
chintankavathia wants to merge 1 commit intoangular:mainfrom
chintankavathia:fix/component-portal-directives

Conversation

@chintankavathia
Copy link
Copy Markdown
Contributor

Added a directives property to ComponentPortal that gets passed through to createComponent in both DomPortalOutlet and CdkPortalOutlet. This allows applying directives to dynamically created components via portals.

Closes #33141

@chintankavathia chintankavathia force-pushed the fix/component-portal-directives branch from b3221a8 to d12a48f Compare April 24, 2026 11:52
Added a `directives` property to `ComponentPortal` that gets passed
through to `createComponent` in both `DomPortalOutlet` and
`CdkPortalOutlet`. This allows applying directives to dynamically
created components via portals.

Closes angular#33141
@chintankavathia chintankavathia force-pushed the fix/component-portal-directives branch from d12a48f to db53a21 Compare April 24, 2026 12:06
@chintankavathia chintankavathia marked this pull request as ready for review April 24, 2026 12:13
@pullapprove pullapprove Bot requested review from andrewseguin and tjshiu April 24, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(cdk/portal): ComponentPortal does not support applying directives when creating components

1 participant