Created
February 26, 2016 18:38
-
-
Save AFelipeTrujillo/a86bee577ed456bc3a42 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.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