Skip to content

Instantly share code, notes, and snippets.

@yitoman
Created March 23, 2016 18:35
Show Gist options
  • Select an option

  • Save yitoman/468ecf7e28d705d30c50 to your computer and use it in GitHub Desktop.

Select an option

Save yitoman/468ecf7e28d705d30c50 to your computer and use it in GitHub Desktop.
$scope.solicitudIngresada = HorasMedicas.create(
{
fecha: solicitudHora.fecha,
hora: solicitudHora.hora,
contacto: { email:solicitudHora.email,
telefono: solicitudHora.telefono
},
sobrecupo: sobrecupo,
comentario: solicitudHora.comentario
}, function(err, horaCreada) {
if (err) throw err;
//console.log(horaCreada);
var estadoHora = [];
EstadoHoraMedica
.findById( {id: 1} )
.$promise
.then(function(results) {
estadoHora = results;
console.log(estadoHora);
horaCreada.prototype.estado(estadoHora);
});
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment