Skip to content

Commit

Permalink
Fixing for AOT
Browse files Browse the repository at this point in the history
  • Loading branch information
leolorenzoluis committed Aug 15, 2017
1 parent 23c9a87 commit 9600a32
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/monaco-editor-loader/monaco-editor-loader.module.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { NgModule, NgZone } from '@angular/core';
import { MonacoEditorLoaderService } from './monaco-editor-loader.service';

export const factory = (ngZone: NgZone) => {
return new MonacoEditorLoaderService(ngZone);
};

@NgModule({
providers: [
{
provide: MonacoEditorLoaderService,
deps: [NgZone],
useFactory: (ngZone: NgZone) => {
return new MonacoEditorLoaderService(ngZone);
}
useFactory: factory
}
]
})
Expand Down

0 comments on commit 9600a32

Please sign in to comment.