Comparing version 0.7.0 to 0.7.1
;(function(undefined) { | ||
'use strict'; | ||
/** | ||
* BottleJS v0.7.0 - 2014-12-06 | ||
* BottleJS v0.7.1 - 2014-12-06 | ||
* A powerful, extensible dependency injection micro container | ||
@@ -6,0 +6,0 @@ * |
{ | ||
"name": "bottlejs", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "A powerful, extensible dependency injection micro container", | ||
@@ -5,0 +5,0 @@ "main": "dist/bottle.js", |
@@ -175,2 +175,13 @@ | ||
## Nested Bottles | ||
Bottle will generate nested containers if dot notation is used in the service name. A sub container will be created for you based on the name given: | ||
```js | ||
var bottle = new Bottle(); | ||
var IPA = function() {}; | ||
bottle.service('Beer.IPA', IPA); | ||
bottle.container.Beer; // this is a new Bottle.container object | ||
bottle.container.Beer.IPA; // the service | ||
``` | ||
## API | ||
@@ -177,0 +188,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31139
297