Skip to content

Instantly share code, notes, and snippets.

@ypcode
Created Jul 29, 2018
Embed
What would you like to do?
import Dependencies from "../di/DependencyManager";
//...
// We can now avoid to pass the ServiceScope instance reference
let service = Dependencies.inject(GreetingsServiceKey);
service.sayHello("Yannick");
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment