re: Dependency Injection in JavaScript 101 VIEW POST


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!


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

Code of Conduct Report abuse