Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to get feature toggle

Hierarchy

  • FeatureToggleService

Index

Constructors

Properties

GET_FT_URL: string = '/config/toggledFeatures'
accessToken: string = ''
baseUrl: string = ''
features?: string[]
featuresRequest: Promise<string[]> = ...
logger: Logger = ...
utilService: HttpUtilService = ...

Accessors

Methods

  • getFeatureToggle(featureName: string): Promise<boolean>
  • getFeatureToggleSync(featureName: string): boolean
  • init(accessToken: string, baseUrl: string): void
  • Initializes the feature toggle service with the provided access token and base URL.

    example
    init('accessToken', 'baseUrl');
    

    Parameters

    • accessToken: string

      The access token used for authentication.

    • baseUrl: string

      The base URL of the feature toggle service.

    Returns void

  • loadFeatures(): Promise<string[]>
  • loadFeaturesFromStorage(): string[]
  • sendGetToggledFeaturesRequest(): Promise<string[]>

Generated using TypeDoc