Skip to content

Commit 15a710a

Browse files
committed
adding install doc
1 parent 0e299be commit 15a710a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,30 @@ AngularJS services to consume [WP-API v2](http://v2.wp-api.org/)
77

88
<http://shprink.github.io/wp-api-angularjs/>
99

10+
## Installation
11+
12+
### npm
13+
14+
```
15+
npm install wp-api-angularjs
16+
```
17+
18+
then import the dist file
19+
20+
```
21+
# ES5
22+
require('wp-api-angularjs');
23+
24+
# or ES6
25+
import 'wp-api-angularjs';
26+
```
27+
28+
### Bower
29+
30+
```
31+
bower install shprink/wp-api-angularjs
32+
```
33+
1034
## Authentication
1135

1236
This library only supports basic auth. OAuth1 not being suitable for JS clients (it would mean exposing key and password out of the open)

0 commit comments

Comments
 (0)