MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / service

Function service

web/static/bower_components/angular/angular.js:4344–4348  ·  view source on GitHub ↗
(name, constructor)

Source from the content-addressed store, hash-verified

4342 }
4343
4344 function service(name, constructor) {
4345 return factory(name, ['$injector', function($injector) {
4346 return $injector.instantiate(constructor);
4347 }]);
4348 }
4349
4350 function value(name, val) { return factory(name, valueFn(val), false); }
4351

Callers

nothing calls this directly

Calls 1

factoryFunction · 0.85

Tested by

no test coverage detected