Skip to content

Named step collections #263

@knownasilya

Description

@knownasilya

Currently I have multiple lists of steps depending on routes and the state of the app or the permissions of the user.

I extend the tour service to make this possible by changing the steps in a modified start method.

I'd love to see something like:

tourService.addSteps('default', steps);
tourService.addSteps('default-loggedin', loggedInSteps);

Somewhere else:

let modifier = isAuthenticated ? '-loggedin' : '';

tourService.start(`default${modifier}`);

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