How to post data from IONIC to CodeIgniter on server?

I Have CodeIgniter Controller On server to create Excel file, and running well on Web with submit form method, how to run or execute it controller from my IONIC…?

below my code igniter controller,

function excel_kpa(){
$nik=$this->input->post(‘hdNik’); //from submit form
$nama=$this->input->post(‘hdNama’); //from submit form
$varJawab1 = $this->m_master_indikator->get_hasil_bobot($nik, 1, $kat2);
$varJawab23 = $this->m_master_indikator->get_hasil_bobot($nik, 23, $kat2);

// Create new PHPExcel object
$objPHPExcel = new PHPExcel();
$objPHPExcel = PHPExcel_IOFactory::load("template/kpa.xlsx");
            ->setCellValue('M5', $varJawab1) 
            ->setCellValue('M31', $varJawab23);
header('Content-type: application/');
header('Content-Disposition: attachment;filename="'  . $nama . '-' . $nik .  '.xlsx' . '"');
header('Cache-Control: max-age=0');
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');