@beebase/ngx-destroyable

NgxDestroyable provides a basic abstract class Destroyable which implements the angular lifecycle event OnDestroy and a method which returns a takeUntil rxjs operator which will end a stream once the component is destroyed.

Usage no npm install needed!

<script type="module">
  import beebaseNgxDestroyable from 'https://cdn.skypack.dev/@beebase/ngx-destroyable';
</script>

README

NgxDestroyable

NgxDestroyable provides a basic abstract class Destroyable which implements the angular lifecycle event OnDestroy and a method which returns a takeUntil rxjs operator which will end a stream once the component is destroyed.