     if templates and model then (t for t in templates when f t) else []
 
   class TemplatesList
+
+    @$inject = [
+      '$scope', '$log', '$timeout', '$q', '$filter', '$location',
+      'connect', 'ClassUtils'
+    ]
 
     toggleSelected: (template) ->
       if template.title is @template?.title

      scope.$watch 'serviceName', (name) ->
        scope.tool.heading += " in #{ name }" if name

  return Array injectables..., TemplatesList


              getName.then setName p


  validPath = (model, path) ->
    try
      model.makePath path
