Home Reference Source
import {Injector} from 'arva-js/utils/di/injector.js'
public class | source

Injector

Constructor Summary

Public Constructor
public

constructor(modules: *[], parentInjector: undefined, providers: *, scopes: *[])

Method Summary

Public Methods
public

createChild(modules: *[], forceNewInstancesOf: *[]): *

public

get(classConstructor: *, constructionParams: *[], resolving: *[]): *

Public Constructors

public constructor(modules: *[], parentInjector: undefined, providers: *, scopes: *[]) source

Params:

NameTypeAttributeDescription
modules *[]
  • optional
  • default: []
parentInjector undefined
  • optional
  • default: undefined
providers *
  • optional
scopes *[]
  • optional
  • default: []

Public Methods

public createChild(modules: *[], forceNewInstancesOf: *[]): * source

Params:

NameTypeAttributeDescription
modules *[]
  • optional
  • default: []
forceNewInstancesOf *[]
  • optional
  • default: []

Return:

*

public get(classConstructor: *, constructionParams: *[], resolving: *[]): * source

Params:

NameTypeAttributeDescription
classConstructor *
constructionParams *[]
  • optional
  • default: []
resolving *[]
  • optional
  • default: []

Return:

*