File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,19 @@ The goal is to provide the same API than the original one but without jQuery and
14
14
15
15
## Installation
16
16
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:
18
30
19
31
``` html
20
32
<link rel =" stylesheet" type =" text/css" href =" angular-toastr.css" />
@@ -29,12 +41,6 @@ Then add `toastr` to your modules dependencies:
29
41
angular .module (' app' , [' ngAnimate' , ' toastr' ])
30
42
```
31
43
32
- You can also install ` angular-toastr ` from bower:
33
-
34
- ```
35
- $ bower install angular-toastr
36
- ```
37
-
38
44
## Usage
39
45
40
46
Toastr usage is very simple, by default it comes with four types of notification messages:
You can’t perform that action at this time.
0 commit comments