forked from angular/code.angularjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular.Object.html
17 lines (14 loc) · 872 Bytes
/
angular.Object.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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>
<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>