"Fossies" - the Fresh Open Source Software Archive

Member "angular-1.7.9/docs/partials/api/ng/function/angular.extend.html" (26 Nov 2019, 2514 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/Angular.js?message=docs(angular.extend)%3A%20describe%20your%20change...#L360' 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/Angular.js#L360' 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.extend</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>Extends the destination object <code>dst</code> by copying own enumerable properties from the <code>src</code> object(s)
   27 to <code>dst</code>. You can specify multiple <code>src</code> objects. If you want to preserve original objects, you can do so
   28 by passing an empty object as the target: <code>var object = angular.extend({}, object1, object2)</code>.</p>
   29 <p><strong>Note:</strong> Keep in mind that <code>angular.extend</code> does not support recursive merge (deep copy). Use
   30 <a href="api/ng/function/angular.merge"><code>angular.merge</code></a> for this.</p>
   31 
   32 </div>
   33 
   34 
   35 
   36 
   37 <div>
   38   
   39 
   40   
   41 
   42   <h2 id="usage">Usage</h2>
   43     
   44       <p><code>angular.extend(dst, src);</code></p>
   45 
   46 
   47     
   48 
   49     
   50 <section class="api-section">
   51   <h3 id="angular.extend-arguments">Arguments</h3>
   52 
   53 <table class="variables-matrix input-arguments">
   54   <thead>
   55     <tr>
   56       <th>Param</th>
   57       <th>Type</th>
   58       <th>Details</th>
   59     </tr>
   60   </thead>
   61   <tbody>
   62     
   63     <tr>
   64       <td>
   65         dst
   66         
   67         
   68       </td>
   69       <td>
   70         <a href="" class="label type-hint type-hint-object">Object</a>
   71       </td>
   72       <td>
   73         <p>Destination object.</p>
   74 
   75         
   76       </td>
   77     </tr>
   78     
   79     <tr>
   80       <td>
   81         src
   82         
   83         
   84       </td>
   85       <td>
   86         <a href="" class="label type-hint type-hint-object">Object</a>
   87       </td>
   88       <td>
   89         <p>Source object(s).</p>
   90 
   91         
   92       </td>
   93     </tr>
   94     
   95   </tbody>
   96 </table>
   97 
   98 </section>
   99     
  100 
  101     <h3 id="angular.extend-returns">Returns</h3>
  102 <table class="variables-matrix return-arguments">
  103   <tr>
  104     <td><a href="" class="label type-hint type-hint-object">Object</a></td>
  105     <td><p>Reference to <code>dst</code>.</p>
  106 </td>
  107   </tr>
  108 </table>
  109 
  110   
  111   
  112   
  113 
  114 
  115 
  116   
  117 </div>
  118 
  119