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

Function errorHandlingConfig

lib/test/angular/1.8.0/angular.js:46–57  ·  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

44 * Default: true. When used without argument, it returns the current value.
45 */
46function errorHandlingConfig(config) {
47 if (isObject(config)) {
48 if (isDefined(config.objectMaxDepth)) {
49 minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN;
50 }
51 if (isDefined(config.urlErrorParamsEnabled) && isBoolean(config.urlErrorParamsEnabled)) {
52 minErrConfig.urlErrorParamsEnabled = config.urlErrorParamsEnabled;
53 }
54 } else {
55 return minErrConfig;
56 }
57}
58
59/**
60 * @private

Callers

nothing calls this directly

Calls 4

isObjectFunction · 0.70
isDefinedFunction · 0.70
isValidObjectMaxDepthFunction · 0.70
isBooleanFunction · 0.70

Tested by

no test coverage detected