Skip to content

Instantly share code, notes, and snippets.

@congjf
Created December 5, 2013 08:11
Show Gist options
  • Save congjf/7801807 to your computer and use it in GitHub Desktop.
Save congjf/7801807 to your computer and use it in GitHub Desktop.
Angular $inject Service
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