(fn)
| 7992 | |
| 7993 | function factory($injector) { |
| 7994 | function makeInjectable(fn) { |
| 7995 | if (isFunction(fn) || isArray(fn)) { |
| 7996 | return /** @this */ function(tElement, tAttrs) { |
| 7997 | return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs}); |
| 7998 | }; |
| 7999 | } else { |
| 8000 | return fn; |
| 8001 | } |
| 8002 | } |
| 8003 | |
| 8004 | var template = (!options.template && !options.templateUrl ? '' : options.template); |
| 8005 | var ddo = { |
no test coverage detected