Created
December 5, 2013 08:11
-
-
Save congjf/7801807 to your computer and use it in GitHub Desktop.
Angular $inject Service
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
function myModuleCfgFn($provide) { | |
var myServiceFactory = function(dep1, dep2) {}; | |
myServiceFactory.$inject = ['dep1', 'dep2']; | |
$provide.factory('myService', myServiceFactory); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment