ng-rxjs-unsubscribe

Package for auto unsubscribe observables inside a class when ngOnDestroy is triggered.

Usage no npm install needed!

<script type="module">
  import ngRxjsUnsubscribe from 'https://cdn.skypack.dev/ng-rxjs-unsubscribe';
</script>

README

NgRxjsUnsubscribe

This library was generated with Angular CLI version 10.0.14.

Code scaffolding

Run ng generate component component-name --project ng-rxjs-unsubscribe to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ng-rxjs-unsubscribe.

Note: Don't forget to add --project ng-rxjs-unsubscribe or else it will be added to the default project in your angular.json file.

Build

Run ng build ng-rxjs-unsubscribe to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build ng-rxjs-unsubscribe, go to the dist folder cd dist/ng-rxjs-unsubscribe and run npm publish.

Running unit tests

Run ng test ng-rxjs-unsubscribe to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.