How to use the aurelia-dependency-injection.Container function in aurelia-dependency-injection

To help you get started, we’ve selected a few aurelia-dependency-injection examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / templating / test / composition-engine.spec.js View on Github external
beforeEach(() => {
    container = new Container();
    compositionEngine = container.get(CompositionEngine);
  });
github aurelia / cli / spec / lib / workflow / input-text.spec.js View on Github external
beforeEach(() => {
    let Container = require('aurelia-dependency-injection').Container;
    let UI = require('../../../lib/ui').UI;
    let FakeUI = require('../../mocks/ui');
    let InputText = require('../../../lib/workflow/activities/input-text');
    let container = new Container();
    container.registerAlias(FakeUI, UI);
    ui = container.get(UI);
    sut = container.get(InputText);
  });
github aurelia / cli / spec / lib / workflow / input-select.spec.js View on Github external
beforeEach(() => {
    let Container = require('aurelia-dependency-injection').Container;
    let UI = require('../../../lib/ui').UI;
    let FakeUI = require('../../mocks/ui');
    let InputSelect = require('../../../lib/workflow/activities/input-select');
    let container = new Container();
    container.registerAlias(FakeUI, UI);
    ui = container.get(UI);
    sut = container.get(InputSelect);
  });
github aurelia / cli / spec / lib / workflow / input-multiselect.spec.js View on Github external
beforeEach(() => {
    let Container = require('aurelia-dependency-injection').Container;
    let UI = require('../../../lib/ui').UI;
    let FakeUI = require('../../mocks/ui');
    let InputMultiselect = require('../../../lib/workflow/activities/input-multiselect');
    let container = new Container();
    container.registerAlias(FakeUI, UI);
    ui = container.get(UI);
    sut = container.get(InputMultiselect);
  });

aurelia-dependency-injection

A lightweight, extensible dependency injection container for JavaScript.

MIT
Latest version published 3 months ago

Package Health Score

78 / 100
Full package analysis