"Fossies" - the Fresh Open Source Software Archive

Member "angular-1.7.9/docs/partials/api/ng/function/angular.errorHandlingConfig.html" (26 Nov 2019, 2582 Bytes) of package /linux/www/angular-1.7.9.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <a href='https://github.com/angular/angular.js/edit/v1.7.x/src/minErr.js?message=docs(angular.errorHandlingConfig)%3A%20describe%20your%20change...#L14' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>
    2 
    3 
    4 
    5 <a href='https://github.com/angular/angular.js/tree/v1.7.9/src/minErr.js#L14' class='view-source pull-right btn btn-primary'>
    6   <i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source
    7 </a>
    8 
    9 
   10 <header class="api-profile-header">
   11   <h1 class="api-profile-header-heading">angular.errorHandlingConfig</h1>
   12   <ol class="api-profile-header-structure naked-list step-list">
   13     
   14     <li>
   15       - function in module <a href="api/ng">ng</a>
   16     </li>
   17   </ol>
   18 </header>
   19 
   20 
   21 
   22 
   23 
   24 <div class="api-profile-description">
   25   <h2 id="overview">Overview</h2>
   26   <p>Configure several aspects of error handling in AngularJS if used as a setter or return the
   27 current configuration if used as a getter. The following options are supported:</p>
   28 <ul>
   29 <li><strong>objectMaxDepth</strong>: The maximum depth to which objects are traversed when stringified for error messages.</li>
   30 </ul>
   31 <p>Omitted or undefined options will leave the corresponding configuration values unchanged.</p>
   32 
   33 </div>
   34 
   35 
   36 
   37 
   38 <div>
   39   
   40 
   41   
   42 
   43   <h2 id="usage">Usage</h2>
   44     
   45       <p><code>angular.errorHandlingConfig([config]);</code></p>
   46 
   47 
   48     
   49 
   50     
   51 <section class="api-section">
   52   <h3 id="angular.errorHandlingConfig-arguments">Arguments</h3>
   53 
   54 <table class="variables-matrix input-arguments">
   55   <thead>
   56     <tr>
   57       <th>Param</th>
   58       <th>Type</th>
   59       <th>Details</th>
   60     </tr>
   61   </thead>
   62   <tbody>
   63     
   64     <tr>
   65       <td>
   66         config
   67         
   68         <div><em>(optional)</em></div>
   69       </td>
   70       <td>
   71         <a href="" class="label type-hint type-hint-object">Object</a>
   72       </td>
   73       <td>
   74         <p>The configuration object. May only contain the options that need to be
   75     updated. Supported keys:</p>
   76 <ul>
   77 <li><p><code>objectMaxDepth</code>  <strong>{Number}</strong> - The max depth for stringifying objects. Setting to a
   78 non-positive or non-numeric value, removes the max depth limit.
   79 Default: 5</p>
   80 </li>
   81 <li><p><code>urlErrorParamsEnabled</code>  <strong>{Boolean}</strong> - Specifies wether the generated error url will
   82 contain the parameters of the thrown error. Disabling the parameters can be useful if the
   83 generated error url is very long.</p>
   84 <p>Default: true. When used without argument, it returns the current value.</p>
   85 </li>
   86 </ul>
   87 
   88         
   89       </td>
   90     </tr>
   91     
   92   </tbody>
   93 </table>
   94 
   95 </section>
   96     
   97 
   98     
   99 
  100   
  101   
  102   
  103 
  104 
  105 
  106   
  107 </div>
  108 
  109