Skip to content

Default duration value for MatSnackBar #9821

@udi101

Description

@udi101

Bug, feature request, or proposal:

What is the expected behavior?

I want all SnackBars in the system to be the same, So the developers will not send their own value and there will be a single variable that effects the duration of all the snackbars of the application.

What is the current behavior?

You have to send the duration in every call to the MatSnackbar.open().

Is there anything else we should know?

There is a way solving this by wrapping to matSnackBar but I prefer to use the original service.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions