Skip to content

Commit 0256f8a

Browse files
committed
adding filters and bundle version
1 parent b466ec5 commit 0256f8a

File tree

11 files changed

+3297
-86
lines changed

11 files changed

+3297
-86
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ wp-api-angularjs is under development and will only cover GET methods of the [WP
55

66
## Install
77

8-
```
9-
# This plugin depends on restangular and underscore
10-
npm install restangular underscore --save-dev
11-
```
12-
13-
Add the library to your dependencies
8+
include the bundled version ```wp-api-angularjs.bundle.js``` (Contains underscore and Restangular) and add the library to your dependencies:
149

1510
```
1611
angular.module('myApp', ['wp-api-angularjs']);
@@ -42,7 +37,14 @@ $wpApiPosts.$get(id).then(function(post) {
4237
### Posts ```$wpApiPosts```
4338

4439
```
40+
// Get latests posts
4541
$wpApiPosts.$getList();
42+
43+
// Get latests uncategorized posts
44+
$wpApiPosts.$getList({
45+
'category_name': 'uncategorized'
46+
});
47+
4648
$wpApiPosts.$get(id);
4749
4850
# DOES NOT WORK FOR NOW

0 commit comments

Comments
 (0)