Files
dspace-angular/src/app/shared/menu/menu.module.ts
2022-12-08 16:12:27 +01:00

56 lines
1.3 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';
import { OnClickMenuItemComponent } from './menu-item/onclick-menu-item.component';
import { CommonModule } from '@angular/common';
import { ExternalLinkMenuItemComponent } from './menu-item/external-link-menu-item.component';
const COMPONENTS = [
MenuSectionComponent,
MenuComponent,
];
const ENTRY_COMPONENTS = [
TextMenuItemComponent,
LinkMenuItemComponent,
OnClickMenuItemComponent,
ExternalLinkMenuItemComponent,
];
const MODULES = [
TranslateModule,
RouterModule,
CommonModule
];
const PROVIDERS = [
];
@NgModule({
imports: [
...MODULES
],
declarations: [
...COMPONENTS,
...ENTRY_COMPONENTS,
],
providers: [
...PROVIDERS,
...ENTRY_COMPONENTS,
],
exports: [
...COMPONENTS
]
})
/**
* This module handles all components, providers and modules that are needed for the menu
*/
export class MenuModule {
}