@@ -30,14 +30,25 @@ Need to use at least Bootstrap 3 or jQuery UI to make pretty notifications.
30
30
31
31
### Usage
32
32
33
+ Include at least Bootstrap 3 or jQuery UI CSS.
34
+
33
35
Include PNotify related assets. You need to include at least pnotify.core.css and pnotify.core.js.
34
36
Don't forget pnotify.confirm.js if you need confirmation dialogs.
35
37
36
- Include at least Bootstrap 3 or jQuery UI.
37
-
38
38
Then add angular-pnotify.js.
39
39
40
+ Here is an example using Bootstrap 3.
41
+
40
42
``` html
43
+ <link rel =" stylesheet" href =" /bower_components/bootstrap/dist/css/bootstrap.min.css" >
44
+ <link rel =" stylesheet" href =" /bower_components/pnotify/pnotify.core.css" >
45
+ <link rel =" stylesheet" href =" /bower_components/pnotify/pnotify.buttons.css" >
46
+
47
+ <script src =" /bower_components/jquery/dist/jquery.min.js" ></script >
48
+ <script src =" /bower_components/angular/angular.js" ></script >
49
+ <script src =" /bower_components/pnotify/pnotify.core.js" ></script >
50
+ <script src =" /bower_components/pnotify/pnotify.confirm.js" ></script >
51
+ <script src =" /bower_components/pnotify/pnotify.buttons.js" ></script >
41
52
<script src =" bower_components/angular-pnotify/src/angular-pnotify.js" ></script >
42
53
```
43
54
@@ -51,11 +62,12 @@ In order to use the API you need to inject the `notificationService` service int
51
62
52
63
``` javascript
53
64
angular .module (' MyApp' )
54
- .controller (' MyCtrl' , [' $scope' , ' notificationService' , function ($scope , notificationService ) {
55
- $scope .action = function () {
56
- notificationService .success (' Success!!!' );
57
- };
58
- }]);
65
+ .controller (' MyCtrl' , [' $scope' , ' notificationService' , function ($scope , notificationService ) {
66
+ $scope .action = function () {
67
+ notificationService .success (' Success!!!' );
68
+ };
69
+ }])
70
+ ;
59
71
```
60
72
61
73
### Methods
0 commit comments