14.1.0 • Published 2 years ago

@norefx/ngx-destroy-module v14.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

DestroyModule

Guard to destroy Angular lazy-loaded route modules

DestroyModule is guard that call destroy() method of guarded lazy-loaded route modules on deactivation to destroy them.

Getting started

npm install @norefx/ngx-destroy-module
# If you use yarn
yarn add @norefx/ngx-destroy-module
import { DestroyModuleGuard } from '@norefx/ngx-destroy-module';

@NgModule({
  imports: [
    RouterModule.forRoot([
      {
        path: `example-path`,
        canDeactivate: [DestroyModuleGuard],
        loadChildren: () => import(`./example.module`).then((m) => m.ExampleModule),
      },
    ]),
  ],
  providers: [DestroyModuleGuard],
})
export class ExampleModule {}

Demo

Stackblitz Demo

0.0.0-test8.1.0

2 years ago

5.1.0

2 years ago

6.1.0

2 years ago

10.1.0

2 years ago

0.0.0-test5.1.0

2 years ago

0.0.0-test12.1.0

2 years ago

0.0.0-test10.1.0

2 years ago

14.1.0

2 years ago

13.1.0

2 years ago

0.0.0-test9.1.0

2 years ago

0.0.0-test11.1.0

2 years ago

7.1.0

2 years ago

0.0.0-test13.1.0

2 years ago

0.0.0-test6.1.0

2 years ago

8.1.0

2 years ago

12.1.0

2 years ago

0.0.0-test14.1.0

2 years ago

0.0.0-test7.1.0

2 years ago

9.1.0

2 years ago

11.1.0

2 years ago

4.1.0

2 years ago

0.0.0-test4.1.0

2 years ago

1.0.0-test3

2 years ago

1.0.0-test2

2 years ago

1.0.0-tst1

2 years ago

4.0.0

2 years ago