This is the situation:
I have a simple app made in Angular JS that comunicate with the server through an API made in codeigniter.
There is a
the data sent with the request is a name-value pairs so you should write some thing like that:
data : {"myformdata":JSON.stringify({email:$scope.user.email, password:$scope.user.password})}
and in code igniter you can recive the data :
$this->input->post("myformdata"); //should return what
// that JSON.stringify returned