Skip to content

spåK di :: Single Page Application Kit - Dependency Injection ::

License

Notifications You must be signed in to change notification settings

pbouzakis/spak-di

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

spåK di :: Single Page Application Kit - Dependency Injection ::

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published