angular.errorHandlingConfig

Improve this Doc View Source angular.errorHandlingConfig

  1. function in module ng

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:

  • objectMaxDepth: The maximum depth to which objects are traversed when stringified for error messages.

Omitted or undefined options will leave the corresponding configuration values unchanged.

Usage

angular.errorHandlingConfig([config]);

Arguments

Param Type Details
config
(optional)
Object

The configuration object. May only contain the options that need to be updated. Supported keys:

  • objectMaxDepth {Number} - The max depth for stringifying objects. Setting to a non-positive or non-numeric value, removes the max depth limit. Default: 5

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.6.4/docs/api/ng/function/angular.errorHandlingConfig

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部