0.5.0 • Published 2 years ago

@cobiro/ng-feature-flags v0.5.0

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

Angular Feature Flags / Feature Toggles by Cobiro

This repo contains the best and cleanest (yet easy to use) angular package to support feature flags also called feature toggles

Why feature toggles?

Here is a meetup video with extensive info: Feature Toggles / Feature Flags for Angular

Example

Link to the repository that contains example code: https://github.com/Cobiro/ng-feature-flags

Install

You can simply run:

npm i @cobiro/ng-feature-flags --save

Angular Support

We support many pieces of angular architecture to get you started using feature flags easily.

State

In case you want to inject the state inside of your ngrx / ngxs or another state management system

Structural Directive

We give you a structural directive that can show / hide UI component

We also support else template

Guard

If you need to prevent a user from accessing some parts of your application via routing, you can use guard

Pipe

If you want to communicate to other directives or simply alter the content of your page, simply use our Pipe

Feature flags config providers

We have Injection token that allows you to swap config providers. We are supporting 2 of them, however you can write your own service that connects to your own API.

JSON File

This is the simplest way to get you started. You can inject JsonFeatureFlagsService using GETS_FEATURE_FLAGS injection token.

Optimizely

In case of more sophisticated use case, we also have an optimizely setup for you simple inject OptimizelyFeatureFlagsService using GETS_FEATURE_FLAGS` injection token.

0.5.0

2 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.1

3 years ago

0.4.2

3 years ago

0.4.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago