Skip to content

Commit 3d93751

Browse files
committed
docs(readme) tabbing and better include example
1 parent c3e5697 commit 3d93751

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,25 @@ Need to use at least Bootstrap 3 or jQuery UI to make pretty notifications.
3030

3131
### Usage
3232

33+
Include at least Bootstrap 3 or jQuery UI CSS.
34+
3335
Include PNotify related assets. You need to include at least pnotify.core.css and pnotify.core.js.
3436
Don't forget pnotify.confirm.js if you need confirmation dialogs.
3537

36-
Include at least Bootstrap 3 or jQuery UI.
37-
3838
Then add angular-pnotify.js.
3939

40+
Here is an example using Bootstrap 3.
41+
4042
```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>
4152
<script src="bower_components/angular-pnotify/src/angular-pnotify.js"></script>
4253
```
4354

@@ -51,11 +62,12 @@ In order to use the API you need to inject the `notificationService` service int
5162

5263
```javascript
5364
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+
;
5971
```
6072

6173
### Methods

0 commit comments

Comments
 (0)