     
     conf
 
+  # Decorator to create injecting constructor.
+  inject = (fn) -> (injected...) ->
+    for [name, _], idx in injectables
+      @[name] = injected[idx]
+    fn.call @
+
   Controllers = ng.module 'steps.history.controllers', ['steps.services']
   
   Controllers.controller 'HistoryCtrl', class HistoryController

    serviceStamp: 'serviceStamp'
    notify: 'notify'

  #--- Functions.

  # Test to see if two strings overlap.
  overlaps = (x, y) -> x && y && (x.indexOf(y) >= 0 || y.indexOf(x) >= 0)



    @$inject: (snd for [fst, snd] in injectables)

    constructor: inject ->
      @init()
      @startWatching()
      console.log @

    elide: true

