Skip to content

Commit 271ded8

Browse files
committed
[AOT] fixed loadNgModule
1 parent 6dfc226 commit 271ded8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng2/lazyLoadNgModule.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type NgModuleToLoad = string | ModuleTypeCallback;
4141
* - Returns the new states array
4242
*/
4343
export function loadNgModule(moduleToLoad: NgModuleToLoad): (transition: Transition) => Promise<LazyLoadResult> {
44-
return function(transition: Transition) {
44+
return (transition: Transition) => {
4545
const ng2Injector = transition.injector().get(NATIVE_INJECTOR_TOKEN);
4646

4747
const createModule = (factory: NgModuleFactory<any>) =>
@@ -53,7 +53,7 @@ export function loadNgModule(moduleToLoad: NgModuleToLoad): (transition: Transit
5353
return loadModuleFactory(moduleToLoad, ng2Injector)
5454
.then(createModule)
5555
.then(applyModule);
56-
}
56+
};
5757
}
5858

5959
/**
@@ -80,7 +80,7 @@ export function loadModuleFactory(moduleToLoad: NgModuleToLoad, ng2Injector: Inj
8080
const compileAsync = (moduleType: Type<any>) =>
8181
compiler.compileModuleAsync(moduleType);
8282

83-
return offlineMode ? loadChildrenPromise : loadChildrenPromise.then(compileAsync)
83+
return offlineMode ? loadChildrenPromise : loadChildrenPromise.then(compileAsync);
8484
}
8585

8686
/**

0 commit comments

Comments
 (0)