Welcome. Would love to see how you're using and any feedback on how to make 
it better!

On Tuesday, April 23, 2013 11:05:42 PM UTC-7, Donald Pipowitch wrote:
>
> Hi Scott,
>
> I'm also a big fan of Angulars dependency injection and looked exactly for 
> a solution like yours. Thank you very much for sharing this.
>
> Am Samstag, 20. April 2013 19:19:27 UTC+2 schrieb Scott Corgan:
>>
>> Not sure what kind of backlash I'll get for doing things slightly 
>> different than the "Node" way, but I wrote what I believe is the easiest 
>> and lightest solution I've seen for dependency injection for Node.
>>
>> It's call Injector <https://github.com/scottcorgan/Injector> (
>> https://github.com/scottcorgan/Injector)
>>
>> The idea is that you add a comment at the top of the file "// inject", 
>> then these files are automatically loaded and ready for injection. I've 
>> found it MUCH easier to inject mocks for tests. Also, when using this 
>> module, directory structure is only for visual organization for the coder. 
>> No need to worry about where the file is located, especially if you move 
>> the file to a different directory. Normally I'd just use another module, 
>> but I didn't find anything that was just easy. A lot of how the injection 
>> works is based off of the AngularJS source code.
>>
>> Anyways, would love some feedback. Always looking to improve the coding 
>> experience for developers.
>>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to