DEV Community

Discussion on: Dependency Injection in JavaScript 101

Collapse
bduff9 profile image
Brian • Edited

Great post, appreciate the simple explanation.

Just checking, is this line a typo on "piston"?
var piston = $jsInject.get("piston");

Just wondering if it should be "pistons" since that is the label you registered it with or if I'm misunderstanding. Thanks!

Collapse
jeremylikness profile image
Jeremy Likness ⚡️ Author

Great catch! It was a typo and I updated the article. Thanks for the good eyes on this.