MCPcopy
hub / github.com/mgonto/restangular / withConfigurationFunction

Function withConfigurationFunction

src/restangular.js:1389–1394  ·  view source on GitHub ↗
(configurer)

Source from the content-addressed store, hash-verified

1387 }
1388
1389 function withConfigurationFunction(configurer) {
1390 var newConfig = angular.copy(_.omit(config, 'configuration'));
1391 Configurer.init(newConfig, newConfig);
1392 configurer(newConfig);
1393 return createServiceForConfiguration(newConfig);
1394 }
1395
1396 function toService(route, parent) {
1397 var knownCollectionMethods = _.values(config.restangularFields);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected