ionic-toast
ionic-toast copied to clipboard
$timeout should be "cancel" before create a new $timeout
Just add line:
$timeout.cancel(toastTimer);
before this line:
toastTimer = $timeout(function () {...}