Skip to content

snackbar - why is ViewContainerRef required #1409

@fxck

Description

@fxck

Honestly why? Can't it use root component's ViewContainerRef by default? Sure, when you are making a demo and triggering the snackbar from a component upon a button click, getting hold of ViewContainerRef is easy. But you know, in real life, you are probably going to be triggering it from a service, or an effect, and there's no easy way to get hold of any ViewContainerRef there, making snackbar extremely annoying to use.

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