About 76,700 results
Open links in new tab
  1. JavaScript Dependency Injection - Stack Overflow

    Nov 18, 2013 · I wonder how dependency injection is being implemented in JavaScript? I searched the internet but couldn't find anything. To be completely honest after working with JavaScript (mainly on the server side) and the whole ecosystem for a few years, I get the feeling that dependency injection (not to mention containers) hasn't really made it into a ...

  2. Do I need dependency injection in NodeJS, or how to deal with ...?

    Feb 13, 2012 · The TL;DR is that due to the untyped, dynamic nature of JavaScript, you can actually do quite a lot without resorting to the dependency injection (DI) pattern or using a DI framework. However, as an application grows larger and more complex, DI can definitely help the maintainability of your code.

  3. Dependency inversion principle in JavaScript - Stack Overflow

    Feb 7, 2016 · Dependency inversion principle in JavaScript jQuery There's no any connection between DI and jQuery. DI is all about the structure and assembling application from compoents. jQuery is a handy wrapper around DOM, nothing more, it has no any structure or components.

  4. javascript - How to do effective dependency injection in Nodejs ...

    Here are a couple of articles that discuss some of the pros/cons of using dependency injection. As best I can tell the main advantage is to simplify unit testing by allowing dependent objects (like databases) to be more easily mocked. When to use Dependency Injection. When is it not appropriate to use dependency injection

  5. Module Requiring vs Dependency Injection in Javascript

    Nov 24, 2016 · As an object-oriented programmer the dependency injection principle would seem the best way, however I have been told otherwise by few JS developers. JS is a whole different world. Because JavaScript allows you to monkey patch anything and everything using very simple techniques, JavaScript developers learned to adapt a different technology on ...

  6. javascript - Angularjs minify best practice - Stack Overflow

    Sep 13, 2013 · Yes, you need to use explicit dependency injection (second variant). But since Angular 1.3.1 you can turn off implicit dependency injection, it's really helpful to solve potential problems with renaming at once (before minification). Turning off implicit DI, using strictDi config property: angular.bootstrap(document, ['myApp'], { strictDi: true });

  7. dependency injection - Javascript IoC / DI frameworks - Stack …

    Mar 11, 2013 · Simple, declarative dependency injection; A flexible, non-invasive connection infrastructure; Application lifecycle management; Powerful core tools and plugin architecture for integrating popular frameworks and existing code. Support for both browser and server environments; Also please check some alternatives npm modules for DI

  8. Dependency injection in javascript - Stack Overflow

    Dependency injection in javascript. Ask Question Asked 11 years, 11 months ago. Modified 11 years, 3 ...

  9. javascript - Dependency injection in functional programming

    Lisp-like languages are different from each other. They have different object systems, etc. This question is really about Javascript: how to implement a Java design pattern (Dependency Injection) in Javascript. I'm removing the off-topic tags [clojure] [lisp] and [scheme]. –

  10. Use injected service from JS code to static Blazor method

    Oct 4, 2019 · This all works fine. The Javascript part calls my Blazor method. But how can I use MyService from there? This is injected into the page. Which is good, because it makes use of dependency injection. I don't want to create a new instance everytime from within the static method, because that way I loose all the auto injected dependencies.

Refresh