Created
November 27, 2015 10:24
-
-
Save ratul0/1c31efcf76da75a9a195 to your computer and use it in GitHub Desktop.
Angular source code for factory method
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 factory (name, factoryFn, enforce) { | |
| return provider(name,{ | |
| $get : enforce !== false ? enforceReturnValue(name,factoryFn) : factoryFn | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment