Skip to content

UIROUTER_MODULE_TOKEN is now a hidden export, but is required in external projects #805

@euangoddard

Description

@euangoddard

Prior to version 6.0.2 UIROUTER_MODULE_TOKEN was an injection token that one could import outside the UI router project. Since this release, I get the follow error when trying to import:

import { UIROUTER_MODULE_TOKEN } from '@uirouter/angular/injectionTokens';

Our application relies on this to do:

{ provide: UIROUTER_MODULE_TOKEN, useFactory: STATES_MODULE_FACTORY, deps: [TRANSFORMED_STATES], multi: true },

Could you please allow this token to be imported by external applications again?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions