/** * Utility function to help lazy load angular modules. To use it first require the module with * webpacks `bundle` loader: * * const lazyBundleCallback = require('bundle?lazy!./realative/path/to/angular/module'); * * Then on the router load it on a resolve, for instance: * * .state('somestate', { * url: 'someurl/', * views: {...}, * resolve: { * lazyLoadModule: loadNgModule(lazyBundleCallback), * } * }); * * You may call `lazyLoadModule` anything you want, this is just a function that will resolve. */ declare function loadNgModule(callback: any): any[]; /** * Does the exact same thing as `loadNgModule` with the exception that it requires the module * file to export a single NgModule object with its name ending in `Module`. This is for * files that follow the convention of not using default exports. */ declare function loadNgModuleNoDefault(callback: any): any[]; export { loadNgModule, loadNgModuleNoDefault, };