Files
dspace-angular/src/app/shared/menu/menu.module.ts
2018-12-11 15:47:41 +01:00

55 lines
1.1 KiB
TypeScript

import { MenuSectionComponent } from './menu-section/menu-section.component';
import { MenuComponent } from './menu.component';
import { NgModule } from '@angular/core';
import { TranslateModule } from '@ngx-translate/core';
import { RouterModule } from '@angular/router';
import { LinkMenuItemComponent } from './menu-item/link-menu-item.component';
import { TextMenuItemComponent } from './menu-item/text-menu-item.component';
const COMPONENTS = [
MenuSectionComponent,
MenuComponent,
LinkMenuItemComponent,
TextMenuItemComponent
];
const ENTRY_COMPONENTS = [
LinkMenuItemComponent,
TextMenuItemComponent
];
const MODULES = [
TranslateModule,
RouterModule
];
const PROVIDERS = [
];
@NgModule({
imports: [
...MODULES
],
declarations: [
...COMPONENTS,
...ENTRY_COMPONENTS,
],
providers: [
...PROVIDERS
],
exports: [
...COMPONENTS,
...MODULES
],
entryComponents: [
...ENTRY_COMPONENTS
]
})
/**
* This module handles all components, providers and modules that are needed for the menu
*/
export class MenuModule {
}