spak-di

0.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i spak-di

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • pbouzakis