DEV Community

Discussion on: Dependency Injection in JavaScript 101

 
jeremylikness profile image
Jeremy Likness ⚡️

You got it! The important part of the illustration is that "pistons" is just a label, not an implementation, so you have flexibility to define it however you see fit elsewhere.

Thread Thread
 
roassys profile image
Rodrigo Assis

Oh, I get it! Then I'll use this label on "$jsInject.get()". Amazing!! Thanks ;)