feat(CdkConnectedOverlay): Add cdkConnectedOverlayDisposeOnNavigation
as @Input for the directive
#27545
Labels
area: cdk/overlay
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Feature Description
It would be nice, if
cdkConnectedOverlayDisposeOnNavigation
could be added as @input parameter for the CdkConnectedOverlay directive.Adding it could also be a possibility to add other missing properties from the OverlayConfig.
In the following file
...cdk/overlay/overlay-directive.ts
a new input@Input('cdkConnectedOverlayDisposeOnNavigation') open: boolean = false;
would have to be added and theprivate _buildConfig(): OverlayConfig
method would need modifications to support the new input.Use Case
Using the
CdkConnectedOverlay
directive withdisposeOnNavigation
. The directive produces a significantly smaller overhead than the overlay.create() solution.The text was updated successfully, but these errors were encountered: