Function apiClientProvider

The provider creator to register an instance of APIClient on the container.

  // Register it on the container
container.register(apiClientProvider);
// Getting access to the service instance
const apiClient = container.get<APIClient>('apiClient');
  container.register(
apiClientProvider({
serviceName: 'myApiClient',
configSetting: 'myApi',
}),
);

Properties

Properties

provider
register: ProviderRegisterFn<Jimpex>