Last active
November 27, 2015 10:48
-
-
Save ratul0/680bbdfe3a6f2281dfdb to your computer and use it in GitHub Desktop.
Angular Service Source
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.instantiate(constructor); | |
| }]); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment