Skip to content

NGX_UI_LOADER_CONFIG_TOKEN not exported as public #111

Open
@sgtonion

Description

@sgtonion

Describe the bug
NGX_UI_LOADER_CONFIG_TOKEN is not exported.

  1. This prevents user to feed configurations for the loader using Dependency Injection
  2. The NgxUiLoaderService does not currently handle Promise type values as configuration which would prevent the configuration to be set

Expected behaviour
adding in AppModule's provider: [{ provide: NGX_UI_LOADER_CONFIG_TOKEN, useFactory: callServerToGetConfiguration, deps: [HttpClient] }]

allows service to read the configuration from callServerToGetConfiguration and then apply to the ngx-loader

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions