Created
February 26, 2016 18:44
-
-
Save AFelipeTrujillo/fd2672c63102f4f09456 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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