alexcrack / alexcrack/angular-ui-notification

Adding a custom property to scope is not documented

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

描述

At the bottom of the documentation it says that you can add your own scope properties in addition to message and title, however there's a lot of documentation missing on that functionality.

There is no documentation that specifies that you must create your own scope, add your custom property to it and then set the undocumented scope property in the notification:

```
var scope = $rootScope.$new(false);
scope.event = notificationEvent;
//show toast
Notification({
title: notificationEvent.displayText,
scope: scope,
templateUrl: '/client/app/core/ui/directives/events/signalrEventItem.html'
});
```

Would you accept a pull request for this?

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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