# @code-workers.io/ngx-feature-toggle

> Lightweight library to enable/disable features in your Angular application for e.g. A/B testing

Latest version **1.1.0** (published 2022-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @code-workers.io/ngx-feature-toggle
pnpm add @code-workers.io/ngx-feature-toggle
yarn add @code-workers.io/ngx-feature-toggle
bun add @code-workers.io/ngx-feature-toggle
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-11-23 |
| First published | 2022-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 47.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mikelgo |
| Keywords | angular, feature-toggle, A/B testing |

## Links

- npm: https://www.npmjs.com/package/@code-workers.io/ngx-feature-toggle
- npm.io page: https://npm.io/package/@code-workers.io/ngx-feature-toggle

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2022-11-23

## README

# @code-workers.io/ngx-feature-toggle

Configure your Angular apps easily with feature flags for e.g. A/B-testing.

## Installation

```bash
npm install @code-workers.io/ngx-feature-toggle
```

## Usage
You will need to implement a service which implements the `FeatureProvider` interface and
then provide it with the `NGX_FEATURE_PROVIDER` token in your `app.module`. That's it for 
the configuration.

To use it you can simply: 
  
  ```typescript
<feature *ngxToggleFeature="'feat-a'; or 'feat-b'"> </feature>

```

## Compatibility
* Version 1.x.x is compatible with Angular >= 14.x.x

---
_Source: https://npm.io/package/@code-workers.io/ngx-feature-toggle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
