Skip to content

SnackBarRef component instance ? #6252

Closed
@fazega

Description

@fazega

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

Having a standard for the instance reference and sharing data.

What is the current behavior?

To get the component instance of a SnackBarRef, the attribute is "instance".
To get the component instance of a DialogRef, the attribute is "componentInstance". Besides, in the documentation we can see a method to share data directly has been implemented, it's not the case for SnackBarRef.

What is the use-case or motivation for changing an existing behavior?

I think having a standard for these components "with reference" would be clearer for the user.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Latest of each.

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions