Created
October 14, 2015 10:03
-
-
Save ryananthonydrake/d95f2e94060d7f624954 to your computer and use it in GitHub Desktop.
Provider Recipe
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
// The $get function is where you return an object and inject services | |
// Providers run before everything else, so the only thing you can inject into them is other providers | |
angular.module("<ModuleName>").provider("<ServiceName>", function <ServiceName>Provider(otherProvider) { | |
this.$get <factory function> | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment