mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
AOT compatibility enhancements (#2015)
* aot compatibility updates - remove index files where needed - move material dependencies to a separete module - use aot compatible lambda functions for module export * remove unused imports * re-export Material module * core module enhancements - fix AOT issue with providers (use lambda instead of variable) - move context menu to a separate module * core module enhancements * feature modules
This commit is contained in:
committed by
Eugenio Romano
parent
182efb15b8
commit
70948c3533
@@ -15,19 +15,27 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { ContextMenuHolderComponent } from './context-menu-holder.component';
|
||||
import { ContextMenuDirective } from './context-menu.directive';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
|
||||
export * from './context-menu.service';
|
||||
export * from './context-menu-holder.component';
|
||||
export * from './context-menu.directive';
|
||||
|
||||
export const CONTEXT_MENU_PROVIDERS: [any] = [
|
||||
ContextMenuService
|
||||
];
|
||||
|
||||
export const CONTEXT_MENU_DIRECTIVES: [any] = [
|
||||
ContextMenuHolderComponent,
|
||||
ContextMenuDirective
|
||||
];
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule
|
||||
],
|
||||
declarations: [
|
||||
ContextMenuHolderComponent,
|
||||
ContextMenuDirective
|
||||
],
|
||||
exports: [
|
||||
ContextMenuHolderComponent,
|
||||
ContextMenuDirective
|
||||
],
|
||||
providers: [
|
||||
ContextMenuService
|
||||
]
|
||||
})
|
||||
export class ContextMenuModule {}
|
Reference in New Issue
Block a user