Last active
December 12, 2016 16:49
-
-
Save codenamejason/041b226208cf4c92e99c4bd9f803da4f 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
function service(name, constructor) { | |
return factory(name, ['$injector', function($injector) { | |
return $injector.instansiate(constructor); | |
}]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment