Skip to content

Instantly share code, notes, and snippets.

@jjvillavicencio
Last active March 22, 2016 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjvillavicencio/1bb052d655a26340a9b7 to your computer and use it in GitHub Desktop.
Save jjvillavicencio/1bb052d655a26340a9b7 to your computer and use it in GitHub Desktop.
.service('srvGaleria',['$http',function($http){
this.servicioGaleria = function (parametro,tipo){
// parametro=parametro.replace(" ","%20");
console.log('http://carbono.utpl.edu.ec:8080/media/webresources/detalle/buscarporsujeto?sujeto='+parametro+'&type='+tipo);
return $http.get('http://carbono.utpl.edu.ec:8080/media/webresources/detalle/buscarporsujeto?sujeto='+parametro+'&type='+tipo);
};
}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment