4.3.1 • Published 1 month ago

ng-configcat-publicapi v4.3.1

Weekly downloads
13
License
-
Repository
-
Last release
1 month ago

ConfigCat Public API client for Angular (ng-configcat-publicapi)

Public API Angular CI License \ NPM

ConfigCat Public API client for Angular. ConfigCat is a hosted feature flag service: https://configcat.com. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.

The client is generated by Swagger Swagger from the ConfigCat Public API.

Getting Started

1. Install package:

via NPM package:

npm i ng-configcat-publicapi

2. Initialization:

In your Angular project:

Without configuring providers

import { ApiModule } from 'ng-configcat-publicapi';
import { HttpClientModule } from '@angular/common/http';

@NgModule({
    imports: [
        ApiModule,
        // make sure to import the HttpClientModule in the AppModule only,
        // see https://github.com/angular/angular/issues/20575
        HttpClientModule
    ],
    declarations: [ AppComponent ],
    providers: [],
    bootstrap: [ AppComponent ]
})
export class AppModule {}

With configuring providers

import { ApiModule, Configuration, ConfigurationParameters } from 'ng-configcat-publicapi';

export function apiConfigFactory (): Configuration => {
  const params: ConfigurationParameters = {
    // set configuration parameters here.
  }
  return new Configuration(params);
}

@NgModule({
    imports: [ ApiModule.forRoot(apiConfigFactory) ],
    declarations: [ AppComponent ],
    providers: [],
    bootstrap: [ AppComponent ]
})
export class AppModule {}

3. Usage:

import { ProductsService } from 'ng-configcat-publicapi';

export class AppComponent {
    constructor(private productsService: ProductsService) { }

    getProducts() {
       this.productsService.v1ProductsGet().subscribe(products => {
           // Do something with the products.
       });
    }
}
4.3.1

1 month ago

4.3.0

3 months ago

4.1.2

7 months ago

4.2.0

6 months ago

4.1.1

7 months ago

3.0.2

9 months ago

4.1.0

9 months ago

4.0.0

9 months ago

3.0.1

1 year ago

2.9.2

1 year ago

3.0.0

1 year ago

2.9.1

1 year ago

2.9.0

2 years ago

2.8.0

2 years ago

2.7.1

2 years ago

2.7.0

2 years ago

2.5.0

3 years ago

2.5.2

3 years ago

2.6.0

3 years ago

2.5.1

3 years ago

2.5.4

3 years ago

2.5.6

3 years ago

2.5.8

3 years ago

2.5.7

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago