# Class: Injector

## miniinjector. Injector

#### new Injector()

  Static class used to init injectable items and inject them.

### Methods

#### <static> initConfig(data, category)

  Init inject category using config

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `data` | miniinjector.InjectConfig | config
  `category` | string | undefined | category of the item

#### <static> injectById(id [, category])

  Inject item by id

  ##### Parameters:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `id` | string |  | id of the item
  `category` | string | undefined | <optional> | category of the item

  ##### Returns:

  injectable item
  Type
    miniinjector.AbstractInjectable | null

#### Search results