0.1.0 • Published 8 years ago

spak-di v0.1.0

Weekly downloads
10
License
-
Repository
github
Last release
8 years ago

spåK-di

DI for spåK :: Dependency Injection for Single Page Application Kit ::

Package that takes specification registrations defined by spak components to creates objects. spak-di uses wirejs under the hood.

This package comes with DIBuilder (which implements spaks SpecificationsBuilder interface).

Update your spak app delegate to use DIBuilder

import { DIBuilder } from spak-di;

App.run( App.Components(...), App.Config(...), App.Delegate({ createSpecsBuilder() { return new DIBuilder(); }, ... // whatever else you hook into. } );

## Other Docs
- (./doc/index.md) for how to register your components w/ specs.
- (./doc/di-builder.md) DIBuilder.
0.1.0

8 years ago