forked from kaushiksamanta/angular-desktop-notification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.html
29 lines (24 loc) · 1.02 KB
/
sample.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html ng-app="notificationTest">
<head>
<title>Notification demo</title>
<script data-require="[email protected]" data-semver="1.4.5" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
</head>
<body ng-controller="notificationController">
<div class="container">
<h1>Angular Desktop Notification Demo</h1>
<textarea rows="10" cols="50" ng-model="text"></textarea>
<button ng-click="pop()">Notify</button>
</div>
<script src="src/angular-desktop-notification.module.js"></script>
<script type="text/javascript">
angular.module('notificationTest', ['angular-desktop-notification']);
angular.module('notificationTest')
.controller('notificationController', function($scope, Notification) {
Notification.initialize('src/dummy.png');
$scope.pop = function() {
Notification.notify($scope.text,'Notification');
}
});
</script>
</body>
</html>