Skip to content

Instantly share code, notes, and snippets.

@AFelipeTrujillo
Created February 26, 2016 18:38
Show Gist options
  • Save AFelipeTrujillo/a86bee577ed456bc3a42 to your computer and use it in GitHub Desktop.
Save AFelipeTrujillo/a86bee577ed456bc3a42 to your computer and use it in GitHub Desktop.
app.config(function($provide){
$provide.provider('otherService',function(){
this.$get = function(){
var factory = {};
factory.add = function(a,b){
return a + b;
}
return factory;
}
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment