A Practical Introduction To Dependency Injection — Smashing Magazine A very thorough introduciton to dependency injection in JavaScript/Typescript with testing examples too.