Skip to content

Commit dd5f5ff

Browse files
committed
Add npm on installation instructions
1 parent b32642a commit dd5f5ff

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@ The goal is to provide the same API than the original one but without jQuery and
1414

1515
## Installation
1616

17-
Grab the latest [release](https://github.com/Foxandxss/angular-toastr/releases) and add both the `css` and `javascript` file:
17+
Use npm:
18+
19+
```
20+
$ npm install angular-toastr
21+
```
22+
23+
If you are not using npm (you should), you can use bower:
24+
25+
```
26+
$ bower install angular-toastr
27+
```
28+
29+
Or you can grab the latest [release](https://github.com/Foxandxss/angular-toastr/releases) and add both the `css` and `javascript` file:
1830

1931
```html
2032
<link rel="stylesheet" type="text/css" href="angular-toastr.css" />
@@ -29,12 +41,6 @@ Then add `toastr` to your modules dependencies:
2941
angular.module('app', ['ngAnimate', 'toastr'])
3042
```
3143

32-
You can also install `angular-toastr` from bower:
33-
34-
```
35-
$ bower install angular-toastr
36-
```
37-
3844
## Usage
3945

4046
Toastr usage is very simple, by default it comes with four types of notification messages:

0 commit comments

Comments
 (0)