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
@@ -18,14 +18,16 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MdSnackBarModule, MdToolbarModule, MdButtonModule } from '@angular/material';
|
||||
|
||||
const MATERIAL_MODULES = [
|
||||
MdSnackBarModule,
|
||||
MdToolbarModule,
|
||||
MdButtonModule
|
||||
];
|
||||
export function modules() {
|
||||
return [
|
||||
MdSnackBarModule,
|
||||
MdToolbarModule,
|
||||
MdButtonModule
|
||||
];
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
imports: MATERIAL_MODULES,
|
||||
exports: MATERIAL_MODULES
|
||||
imports: modules(),
|
||||
exports: modules()
|
||||
})
|
||||
export class MaterialModule {}
|
||||
|
Reference in New Issue
Block a user