【文件属性】:
文件名称:notifications:angularjs 的 webkit 通知服务
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-04 23:48:08
JavaScript
通知
angularjs 的简单通知服务
用法
在你的配置中的某个地方放置你的默认设置
NotificationProvider . setDefaults ( {
image : "path/to/your/default/image.png" ,
title : "my default title" ,
text : "my default body" ,
show : 1000 // default delay to show, or just true to show immediately
} ) ;
然后从你的代码中的任何地方创建一个新的通知
Notification . create ( {
image : "path/to/your/awesome-image.png" ,
title : "Ahoy!" ,
text : "This is
【文件预览】:
notifications-master
----.gitignore(97B)
----package.json(242B)
----Gruntfile.js(1KB)
----index.js(109B)
----providers()
--------notification.js(5KB)
----README.md(1KB)
----component.json(332B)
----bower.json(326B)