forked from angular/code.angularjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular.Array.html
16 lines (13 loc) · 1005 Bytes
/
angular.Array.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<h1>angular.Array</h1>
<div class="angular-array"><p><code>angular.Array</code> is a namespace for utility functions for manipulation of JavaScript <code>Array</code>
objects.</p>
<p>These functions are exposed in two ways:</p>
<ul>
<li><p><strong>in angular expressions</strong>: the functions are bound to the Array objects and augment the Array
type as array methods. The names of these methods are prefixed with <code>$</code> character to minimize
naming collisions. To call a method, invoke <code>myArrayObject.$foo(params)</code>.</p>
<p>Because <code>Array</code> type is a subtype of the Object type, all <a href="#!angular.Object"><code>angular.Object</code></a> functions
augment the <code>Array</code> type in angular expressions as well.</p></li>
<li><p><strong>in JavaScript code</strong>: the functions don't augment the <code>Array</code> type and must be invoked as
functions of <code>angular.Array</code> as <code>angular.Array.foo(myArrayObject, params)</code>.</p></li>
</ul></div>