Skip to content

Cannot target which container to show toast in #226

@victorbadila

Description

@victorbadila

In the html I have the following containers:

<toaster-container [toasterconfig]="config1">
    </toaster-container>
    <toaster-container [toasterconfig]="config2">
</toaster-container>

and in the TS file:

  config1= new ToasterConfig({
    ...
    toastContainerId: 0,
  });

  config2 = new ToasterConfig({
    ...
    toastContainerId: 1,
  });

When I fire a toast I specify which id to target:

this.toasterService.pop({
      ...
      toastContainerId: 0,
    });

Yet the toast is displayed in both containers.

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