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

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