title: Get params from angular $http in Codeigniter controller
body: <p>I am new to angular.So i dont know i am doing it in the right way.I am working in codeigniter along with angular.I need to get the id which i was passing though the angular <code>$http</code> service in my codeigniter controller.. I didn't get any console errors. Simply the data is not returning.. This is my angular controller</p>
  
  <pre><code>app.controller("newsController_id",function($scope,$http,$routeParams){
  $http({ method:'POST',
                  url:'Controller1/get_list_id',
                  params:{id:$routeParams.id}
              })
              .then(function (response) {
                  $scope.blogs_id = response.data;    
              })
  </code></pre>
  
  <p>codeigniter controller</p>
  
  <pre><code>public function get_list_id() {
          $id=$this-&gt;input-&gt;post('id');
          //$id='6';
          $data = $this-&gt;Blog_model-&gt;getAll_id($id);
          $this-&gt;output-&gt;set_content_type('application/json')-&gt;set_output(json_encode($data));
      }
  </code></pre>
  
  <p>There are no errors in the codeigniter model and view pages..since i got my result perfectly when i hardcoded the id value as 6.But no output when i posting the id.help me solving this</p>