Files
angular__angular/src/lib/menu/menu-module.ts
T

41 lines
1.1 KiB
TypeScript
Raw Normal View History

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
2017-09-28 13:45:03 -07:00
import {MatCommonModule} from '@angular/material/core';
import {OverlayModule} from '@angular/cdk/overlay';
2017-09-28 13:45:03 -07:00
import {MatMenu, MAT_MENU_DEFAULT_OPTIONS} from './menu-directive';
import {MatMenuItem} from './menu-item';
import {MatMenuTrigger, MAT_MENU_SCROLL_STRATEGY_PROVIDER} from './menu-trigger';
import {MatRippleModule} from '@angular/material/core';
@NgModule({
imports: [
OverlayModule,
CommonModule,
2017-09-28 13:45:03 -07:00
MatRippleModule,
MatCommonModule,
],
2017-09-28 13:45:03 -07:00
exports: [MatMenu, MatMenuItem, MatMenuTrigger, MatCommonModule],
declarations: [MatMenu, MatMenuItem, MatMenuTrigger],
providers: [
2017-09-28 13:45:03 -07:00
MAT_MENU_SCROLL_STRATEGY_PROVIDER,
{
2017-09-28 13:45:03 -07:00
provide: MAT_MENU_DEFAULT_OPTIONS,
useValue: {
overlapTrigger: true,
xPosition: 'after',
yPosition: 'below',
},
}
],
})
2017-09-28 13:45:03 -07:00
export class MatMenuModule {}