MCPcopy
hub / github.com/angular-ui/ui-router / errorHandlingConfig

Function errorHandlingConfig

test/angular/1.6/angular.js:39–47  ·  view source on GitHub ↗

* @ngdoc function * @name angular.errorHandlingConfig * @module ng * @kind function * * @description * Configure several aspects of error handling in AngularJS if used as a setter or return the * current configuration if used as a getter. The following options are supported: * * - **objectM

(config)

Source from the content-addressed store, hash-verified

37 * Default: 5
38 */
39function errorHandlingConfig(config) {
40 if (isObject(config)) {
41 if (isDefined(config.objectMaxDepth)) {
42 minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN;
43 }
44 } else {
45 return minErrConfig;
46 }
47}
48
49/**
50 * @private

Callers

nothing calls this directly

Calls 3

isObjectFunction · 0.70
isDefinedFunction · 0.70
isValidObjectMaxDepthFunction · 0.70

Tested by

no test coverage detected