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
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:
2941angular .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
4046Toastr 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