Here is my service code:
<script>
var pop = function (type, message, callbackfn,duration) {
toaster.pop({
type: type,
body: message,
showCloseButton: true,
timeout: duration,
positionClass: "toast-top-full-width",
onHideCallback: callbackfn,
hideDuration : 1000,
hideMethod: 'slideUp'
});
</script>
However, the fading in and out effect of my toaster is not working as expected. I am using AngularJS toastr version 0.4.15. What option should I add to the pop method to enable the fadeOut feature?