New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ng-configcat-publicapi

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-configcat-publicapi

[![Public API Angular CI](https://github.com/configcat/ng-configcat-publicapi/actions/workflows/ng-configcat-publicapi-ci.yml/badge.svg?branch=master)](https://github.com/configcat/ng-configcat-publicapi/actions/workflows/ng-configcat-publicapi-ci.yml) ![

  • 4.4.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
0
Weekly downloads
 
Created
Source

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.
       });
    }
}

FAQs

Package last updated on 04 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc