Re:OOP Is Dead, Long Live OOP
by gtramont on Thursday October 18, 2018 @05:39PM
(#18252371)
The same ideas still apply. Take a look at this explanation: 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!
[ Parent
| on HN ]