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
$_POST will be empty in CodeIgniter because it purposely empties it for security reasons. You need to use $this->input->post(); instead.
$_POST
$this->input->post();
CodeIgniter Input Class