@rxap/life-cycle
Version:
Provides an Angular service and guard to manage application lifecycle. It allows to execute code when the application is stable and ready. Includes a guard to prevent route activation until the app is ready.
36 lines (29 loc) • 1.36 kB
Markdown
Provides an Angular service and guard to manage application lifecycle. It allows to execute code when the application is stable and ready. Includes a guard to prevent route activation until the app is ready.
[](https://www.npmjs.com/package/@rxap/life-cycle)
[](https://commitizen.github.io/cz-cli/)
[](https://github.com/prettier/prettier)



- [Installation](../wiki/#installation)
- [Generators](../wiki/#generators)
- [init](../wiki/#init)
# Installation
**Add the package to your workspace:**
```bash
yarn add @rxap/life-cycle
```
**Install peer dependencies:**
```bash
yarn add @angular/core @angular/router @rxap/utilities rxjs
```
**Execute the init generator:**
```bash
yarn nx g @rxap/life-cycle:init
```
# Generators
## init
> Initialize the package in the workspace
```bash
nx g @rxap/life-cycle:init
```