$http({
                    method : "POST",
                    url: $dom.getServer()+"/php/news/addNew.php",
                    data:objEnviar,
                    headers : {
                      'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8'
                    }
                  }).then(function(data) {
                       $scope.compose.id = data.data.detail;
             
                        if ($scope.compose.type==="Comunicado" ) {