alexcrack / alexcrack/angular-ui-notification

run an event when a notification starts

未关闭
#146 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
529
派生
164
PR 合并指标
30 天内没有已合并 PR

描述

There is currently an `.onClose` method that can be setup to run when a notification closes, after looking up the docs and the code I've found no evidence for an opposite event that would fire when a notification is spawned.

My use case is that I want to play a sound when a notification is shown. So such an event would need to be defined at `.config` and would need to be run before any similar event would be run by a notification instance.

Is there a solution for this without poking inside the code and patching it ? if not I would probably fork the code and do it in the weekend.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。