You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

container-ioc

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

container-ioc - npm Package Compare versions

Comparing version

to
1.5.3

2

package.json
{
"name": "container-ioc",
"version": "1.5.2",
"version": "1.5.3",
"description": "IoC container",

@@ -5,0 +5,0 @@ "author": "Alexander Kozlov",

@@ -34,3 +34,3 @@ ![alt text](http://abcselfstorageperth.com.au/wp-content/uploads/2014/08/icon-container-storage1.png)

class C {
constructor(@Inject(B) public b: B) { // use @Inject() decorator to mark dependencies
constructor(@Inject('IB') public b: B) {
}

@@ -70,3 +70,3 @@ }

### Injection Token
> Using string literals for tokens can become a head ache, use Injection Token instread:
> Using string literals for tokens can become a head ache, use Injection Token instread. **T** in front of **TFactory** stands for token, but you can stick to your own name convention:
```Typescript

@@ -73,0 +73,0 @@ import { InjectionToken, Container } from 'container-ioc';