1.4.5 • Published 4 years ago

interactive-preloading-strategy v1.4.5

Weekly downloads
-
License
(MIT)
Repository
github
Last release
4 years ago

Preloading Strategy that lazy loads a module upon mouse hover

Installation and Usage

npm install interactive-preloading-strategy

To import the entire core set of functionality:

import { InteractivePreloadingStrategyModule } from 'interactive-preloading-strategy/interactive-preloading-strategy.module';

import above module into your AppModule

To import preloading strategy

import { InteractivePreloadingStrategy } from 'interactive-preloading-strategy/interactive-preloading-strategy';

import above preloading strategy, then add it to your RouterModule as a preloading strategy value

RouterModule.forRoot(routes, {preloadingStrategy: InteractivePreloadingStrategy})

Make sure your route path has loadonhover as route data

path: 'child', loadChildren: './child-module/child-module.module#ChildModuleModule',data: { loadonhover: true }
1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago