4 ms·
The same ideas still apply. Take a look at this explanation: http://vvgomes.com/javascript-dependency-injection/ http://vvgomes.com/javascript-dependency-inject
by gtramont 8y ago
The same ideas still apply. Take a look at this explanation: http://vvgomes.com/javascript-dependency-injection/ http://vvgomes.com/javascript-dependency-injection/ -- suggestion for after you read the post: depending on your needs I'd recommend not using the default value as, from a dependency perspective, you end up tightly coupling the two. Hope it helps!
- p2t2p 8y agoThanks a lot, I’ll take a look