OOP is better with stamps: Composable object factories.
-
Updated
Apr 1, 2021 - JavaScript
Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency's implementation from the class that's using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn't need to care which of the implementations is used. This is also especially useful for unit testing.
There are different types of dependency injection:
OOP is better with stamps: Composable object factories.
A powerful dependency injection micro container for JavaScript applications
JavaScript模块加载器,基于AMD。迄今为止,对AMD理解最好的实现。
A Node.js App Architecture showcase heavily influenced by the Clean Architecture and Hexagonal Architecture, using MongoDB.
Modular JavaScript framework for building scalable and reactive applications
The right way to mock dependencies in Node.js or webpack environment.
The NodeDependencyInjection component allows you to standarize and centralize the way objects are constructed in your application.
Add Angular 1.x dependency injection annotations to ES6 code
🚀 A modular folder structure for developing highly scalable and maintainable APIs in nodejs using express.
Creating Custom Role Manager In ASP.NET MVC 5
This provides a sample code using vue.js running on ASP.NET Core
Dependency Injection for JavaScript
Asmin is .NET CORE project infrastructure, to get a quick start on the project.
VM Sandboxes
Redux architecture extended with a layer of services.
Just a dependency injection container to NodeJS and to the browser using new ES6 features
simplest dependency injection
💪 Maintaining large Redux applications with ease.
Hierarchical Dependency Injection with new React 16 Context API
Created by Martin Fowler
Released January 23, 2004