0.1.0 • Published 3 years ago

feature-toggle-client-lib v0.1.0

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

FeatureToggleClientLib

This library was generated with Angular CLI version 12.1.0.

Using It

On app.module:

import { FeatureTogggleClientConfig, FeatureToggleClientModule, FeatureToggleClientService } from 'feature-toggle-client-lib';

const config: FeatureTogggleClientConfig = { apiUrl:"https://localhost:5001", environmentName:"dev1", refreshIntervalInSeconds:30, showLogs: false };

imports: ..., FeatureToggleClientModule.forRoot(config)

To Force the application starts with loading the first version of the Features

Remove the AutoBootstrap of the app

//bootstrap: AppComponent

On Class AppModule

constructor(private featureToggle: FeatureToggleClientService) {

}

public ngDoBootstrap(ref: ApplicationRef) { this.featureToggle.Initialize().toPromise().then(() => { ref.bootstrap(AppComponent); }); }

Checking if a Feature is enabled:

this.resultFeature = this.featureToggle.isEnabled("Feature_E");

Build

Run ng build feature-toggle-client-lib to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build feature-toggle-client-lib, go to the dist folder cd dist/feature-toggle-client-lib and run npm publish.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

0.0.22

3 years ago

0.0.23

3 years ago

0.1.0

3 years ago

0.0.0

3 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago