Skip to content

Instantly share code, notes, and snippets.

View pxwise's full-sized avatar
🌎
[object Object], NaN

Shawn Stedman pxwise

🌎
[object Object], NaN
View GitHub Profile
@pxwise
pxwise / async-ng-module-loader.ts
Created November 7, 2016 00:57 — forked from brandonroberts/async-ng-module-loader.ts
Webpack Async NgModule Loader
import {Injectable, NgModuleFactory, NgModuleFactoryLoader, Compiler, Type} from '@angular/core';
class LoaderCallback {
constructor(public callback) {}
}
export let load: Type = (callback: Function) => {
return new LoaderCallback(callback);
};