Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sagiegurari committed Jun 24, 2015
1 parent dfbd8d6 commit cc418ee
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ See full docs at: [API Docs](docs/api.md)

| Date | Version | Description |
| ----------- | ------- | ----------- |
| 2015-06-24 | v0.0.19 | Maintenance |
| 2015-06-24 | v0.0.20 | Maintenance |
| 2015-02-16 | v0.0.7 | Automatic unit tests via karma |
| 2015-02-05 | v0.0.5 | Doc changes |
| 2014-12-30 | v0.0.4 | Doc changes |
Expand Down
28 changes: 14 additions & 14 deletions angular-web-notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,20 @@
* @param {object} [options] - Holds the notification data (web notification API spec for more info)
* @param {function} callback - Called after the show is handled.
* @example
```js
webNotification.showNotification('Example Notification', {
body: 'Notification Text...',
icon: 'my-icon.ico'
}, function onShow(error, hide) {
if (error) {
window.alert('Unable to show notification: ' + error.message);
} else {
setTimeout(function hideNotification() {
hide();
}, 5000);
}
});
```
* ```js
* webNotification.showNotification('Example Notification', {
* body: 'Notification Text...',
* icon: 'my-icon.ico'
* }, function onShow(error, hide) {
* if (error) {
* window.alert('Unable to show notification: ' + error.message);
* } else {
* setTimeout(function hideNotification() {
* hide();
* }, 5000);
* }
* });
* ```
*/
showNotification: function () {
//convert to array to enable modifications
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-web-notification",
"version": "0.0.19",
"version": "0.0.20",
"authors": [
"Sagie Gur-Ari <[email protected]>"
],
Expand Down
26 changes: 13 additions & 13 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ case of no errors) and a 'hide' function which can be used to hide the notificat

**Example**
```js
webNotification.showNotification('Example Notification', {
body: 'Notification Text...',
icon: 'my-icon.ico'
}, function onShow(error, hide) {
if (error) {
window.alert('Unable to show notification: ' + error.message);
} else {
setTimeout(function hideNotification() {
hide();
}, 5000);
}
});
```
webNotification.showNotification('Example Notification', {
body: 'Notification Text...',
icon: 'my-icon.ico'
}, function onShow(error, hide) {
if (error) {
window.alert('Unable to show notification: ' + error.message);
} else {
setTimeout(function hideNotification() {
hide();
}, 5000);
}
});
```

0 comments on commit cc418ee

Please sign in to comment.