Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display more than one $mdToast on the screen

How to display more than one $mdToast on the screen at the same time. I have seen this question , but It doesn't suit me. For example if you try to run this couple of times on click event, next one will hide previous toast:

$mdToast.show(
      $mdToast.simple()
        .content('Simple Toast!')
        .hideDelay(15000)
    );
like image 672
Maksym Volodin Avatar asked Jul 03 '15 11:07

Maksym Volodin


1 Answers

Toasts are per design specs limited to one. I found some links, if it be interesting for you:

angular_material_issues

material_snackbars

You can add toasts to the global queue.

like image 121
Maksym Volodin Avatar answered Nov 13 '22 12:11

Maksym Volodin