How to create a SnackBar service?
MatSnackBar is an angular directive that’s used for showing a notification bar specifically on the mobile devices.
These types of UI components are generally used several times. So to avoid the repetition of code, a service can simply be created to use SnackBar in different components.
