title: How to list posts in specific category [ionic & angularjs]
body: <p>I am creating a hybrid android app using wordpress json api, ionic and angularjs.
  I am stuck at just one thing : I am unable to list the posts in a particular category.I got the list of categories but unable to pass some parameters.
  Here's the code</p>
  
  <p>controller.js</p>
  
  <pre><code>.controller('CatsCtrl', function($scope, $http) {
  
    // You can change this url to experiment with other endpoints
    var categoriesApi = 'http://shayarihunt.com/wp-    json/taxonomies/category/terms?_jsonp=JSON_CALLBACK';
  
    // This should go in a service so we can reuse it
     $http.jsonp( categoriesApi, {cache:true} ).
      success(function(data, status, headers, config) {
        $scope.categories = data;
       console.log( data );
       }).
      error(function(data, status, headers, config) {
    console.log( 'Post load error.' );
   });
  
  })
  
  .controller('CatsPostsCtrl', function($scope, $http) {
  
    // You can change this url to experiment with other endpoints
     var postsApi = 'http://shayarihunt.com/wp-json/posts?filter[cat]=' + the parameter has to come here, (I dont know what!!!) + '&amp;_jsonp=JSON_CALLBACK';
  
    // This should go in a service so we can reuse it
      $http.jsonp( postsApi, {cache:true} ).
    success(function(data, status, headers, config) {
    $scope.posts = data;
    console.log( data );
     }).
      error(function(data, status, headers, config) {
        console.log( 'Post load error.' );
      });
  
     })
  </code></pre>
  
  <p>The CatsCtrl display all categories but CatsPostsCtrl should display all posts in category which it doesn't.
  Any help is appreciated.
  Thanks!</p>