mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(module-loader): add unit tests for module-loader load
This commit is contained in:
@@ -65,9 +65,9 @@ export interface LoadedModule {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export function setupPreloading(deeplinkConfig: DeepLinkConfig, moduleLoader: ModuleLoader) {
|
||||
export function setupPreloading(deepLinkConfig: DeepLinkConfig, moduleLoader: ModuleLoader) {
|
||||
return function() {
|
||||
const linksToLoad = deeplinkConfig.links.filter(link => !!link.loadChildren);
|
||||
const linksToLoad = deepLinkConfig.links.filter(link => !!link.loadChildren);
|
||||
for (const link of linksToLoad) {
|
||||
moduleLoader.load(link.loadChildren);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user