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:
Denys Vuika
2017-06-30 22:20:12 +01:00
committed by Eugenio Romano
parent 182efb15b8
commit 70948c3533
16 changed files with 135 additions and 207 deletions

View File

@@ -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 {}