license import { BidiModule } from '@angular/cdk/bidi' ; import { PortalModule } from '@angular/cdk/portal' ; import { ScrollingModule , VIEWPORT_RULER_PROVIDER } from '@angular/cdk/scrolling' ; import { NgModule , Provider } from '@angular/core' ; import { OVERLAY_KEYBOARD_DISPATCHER_PROVIDER } from './keyboard/overlay-keyboard-dispatcher' ; import { Overlay } from './overlay' ; import { OVERLAY_CONTAINER_PROVIDER } from './overlay-container' ; import { CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER , CdkConnectedOverlay , CdkOverlayOrigin , } from './overlay-directives' ; import { OverlayPositionBuilder } from './position/overlay-position-builder' ; @ NgModule ( { imports : [ BidiModule , PortalModule , ScrollingModule ] , exports : [ CdkConnectedOverlay , CdkOverlayOrigin , ScrollingModule ] , declarations : [ CdkConnectedOverlay , CdkOverlayOrigin ] , providers : [ Overlay , CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER , ] , } ) export class OverlayModule { } deprecated breaking-change docs-private export const OVERLAY_PROVIDERS = [ Overlay , OverlayPositionBuilder , OVERLAY_KEYBOARD_DISPATCHER_PROVIDER , VIEWPORT_RULER_PROVIDER , OVERLAY_CONTAINER_PROVIDER , CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER , ] ;