extended-spine-di

Some extensions for spine framework with dependency injection

extended-spine-di

Extended spine framework with dependency-injection. It gives you ability to instantiate controllers almost like in Angular.

You can use it for example with SimQ.

$ npm install extended-spine-di
Controller = require 'extended-spine-di'
Controller.init($, diContainer)
Controller = require 'extended-spine-di/Controller'
 
class MyController extends Controller
 
    constructor: (@el, http, jQuery) ->
        super
 
 
module.exports = MyController

Now your controller will have got http and jQuery services from your di container.

$ npm test
  • 1.0.0
    • Initial version