Skip to content

Instantly share code, notes, and snippets.

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