-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix
Description
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 functionsA relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix