Skip to content

Commit

Permalink
refactor(material/dialog): replace left-over module imports with stan…
Browse files Browse the repository at this point in the history
…dalone equivalents
  • Loading branch information
nikos-moysiadis committed Nov 28, 2023
1 parent fb7bf62 commit 0c6993a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/material/dialog/dialog-container.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="mdc-dialog__container">
<div class="mat-mdc-dialog-surface mdc-dialog__surface">
<ng-template cdkPortalOutlet></ng-template>
<ng-template cdkPortalOutlet />
</div>
</div>
4 changes: 2 additions & 2 deletions src/material/dialog/dialog-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {MatDialogConfig} from './dialog-config';
import {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';
import {CdkDialogContainer} from '@angular/cdk/dialog';
import {coerceNumberProperty} from '@angular/cdk/coercion';
import {ComponentPortal, PortalModule} from '@angular/cdk/portal';
import {CdkPortalOutlet, ComponentPortal} from '@angular/cdk/portal';

/** Event that captures the state of dialog container animations. */
interface LegacyDialogAnimationEvent {
Expand Down Expand Up @@ -57,7 +57,7 @@ export const CLOSE_ANIMATION_DURATION = 75;
// tslint:disable-next-line:validate-decorators
changeDetection: ChangeDetectionStrategy.Default,
standalone: true,
imports: [PortalModule],
imports: [CdkPortalOutlet],
host: {
'class': 'mat-mdc-dialog-container mdc-dialog',
'tabindex': '-1',
Expand Down

0 comments on commit 0c6993a

Please sign in to comment.