Created work.

Angular Material $mdToast color

Toasts are useful for displaying some quick information to the user. Using the $mdToast service of Angular Material we are able to do so with very little effort. Sometimes we want the background color to change, but how do we do this. Using the attribute

we add a class to a toast. Now we can add some CSS styling to style the toast how we want according to that class.

Here is a working example Codepen.

Leave a Reply