Skip to content

Confusing behavior with provideAngularSplitOptions on angular-split@19.0.0 #516

Closed

Description

@bbeyssac

I was trying to use provideAngularSplitOptions(...) in a standalone Angular 19 app, in the ApplicationConfig.providers array. This caused a runtime error:

NullInjectorError: No provider for InjectionToken angular-split-global-config!

Link to reproduce the bug :
https://stackblitz.com/edit/angular-split-demo-v19-mhpzs53r?file=src%2Fmain.ts

Activity

  1. Harpush commented on Jun 5, 2025

    @Harpush
    Collaborator

    It is a known issue and had been solved already by #505.
    It will be ready on the next release.

  2. Harpush commented on Jun 5, 2025

    @Harpush
    Collaborator

    Just adding that for now you can provide it in your app component and it will behave as if provided in root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions