forked from angular/code.angularjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular.Object.html
15 lines (13 loc) · 884 Bytes
/
angular.Object.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<h1>angular.Object</h1>
<fieldset class="workInProgress"><legend>Work in Progress</legend>
This page is currently being revised. It might be incomplete or contain inaccuracies.</fieldset>
<h2>Description</h2>
<p>Utility functions for manipulation with JavaScript objects.</p>
<p>These functions are exposed in two ways:</p>
<ul>
<li><p><strong>in angular expressions</strong>: the functions are bound to all objects and augment the Object
type. The names of these methods are prefixed with <code>$</code> character to minimize naming collisions.
To call a method, invoke the function without the first argument, e.g, <code>myObject.$foo(param2)</code>.</p></li>
<li><p><strong>in JavaScript code</strong>: the functions don't augment the Object type and must be invoked as
functions of <code>angular.Object</code> as <code>angular.Object.foo(myObject, param2)</code>.</p></li>
</ul>