oly
Dependency injection, store and event emitter in one place.
oly is a module of the oly project.
; Kernel .create/* store */ .with/* services & providers */ .start .catchconsole.error
Installation
$ npm install oly
Features
Injections
; Kernel .create .with .getC.a.text // B
Events
; Kernel .create .withApp .emit"App.say", "hello"; // hello
States
; Kernel .create .on"oly:state:mutate", console.log .kernel .state"A", "C"; // { key: 'A', newValue: 'C', oldValue: 'B' }