Actually i found what i'v looking for...
First i need to implemente some $httpProvider to angular:
Code:
dgApp.config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded";
$httpProvider.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
// Solução para os objetos aparecerem no $_POST, ou isso ou $httpParamSerializer direto no $http
$httpProvider.interceptors.push(['$q', function($q) {
return {
request: function(config) {
if (config.data && typeof config.data === 'object') {
config.data = $.param(config.data);
}
return config || $q.when(config);
}
};
}]);
}]);
Doing this to your angular app u can check in CI controller for ajax request like:
Code:
if($this->input->is_ajax_request()){
//some code
}
And applying those configurations to angular app, you can access the CI input ($this->input->post()) and retrieve everything that has been sent through the ajax!
(Other way is doing those first 2 configs to httpProvider and using httpParamSerializer angular option)
Hope this can help someone in the furute.
Sorry for my english, is not that good since is not my native language...
Cheers!