Upgrade to angularjs 1.2.0 rc1
This commit is contained in:
parent
d223dfd662
commit
d6b021bfaf
674 changed files with 79667 additions and 62269 deletions
37
lib/angular/docs/partials/api/angular.equals.html
Normal file → Executable file
37
lib/angular/docs/partials/api/angular.equals.html
Normal file → Executable file
|
@ -1,33 +1,28 @@
|
|||
<h1><code ng:non-bindable="">angular.equals</code>
|
||||
<span class="hint">(API in module <code ng:non-bindable="">ng</code>
|
||||
)</span>
|
||||
<a href="http://github.com/angular/angular.js/tree/v1.2.0rc1/src/Angular.js#L657" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a><a href="http://github.com/angular/angular.js/edit/master/src/Angular.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">angular.equals</code>
|
||||
<div><span class="hint">API in module <code ng:non-bindable="">ng</code>
|
||||
</span>
|
||||
</div>
|
||||
</h1>
|
||||
<div><a href="http://github.com/angular/angular.js/edit/master/src/Angular.js" class="improve-docs btn btn-primary">Improve this doc</a><h2 id="Description">Description</h2>
|
||||
<div class="description"><p>Determines if two objects or two values are equivalent. Supports value types, arrays and
|
||||
<div><h2 id="Description">Description</h2>
|
||||
<div class="description"><div class="angular-equals-page"><p>Determines if two objects or two values are equivalent. Supports value types, regular expressions, arrays and
|
||||
objects.</p>
|
||||
|
||||
<p>Two objects or values are considered equivalent if at least one of the following is true:</p>
|
||||
|
||||
<ul>
|
||||
<li>Both objects or values pass <code>===</code> comparison.</li>
|
||||
<li>Both objects or values are of the same type and all of their properties pass <code>===</code> comparison.</li>
|
||||
<li>Both values are NaN. (In JavasScript, NaN == NaN => false. But we consider two NaN as equal)</li>
|
||||
<li>Both values are NaN. (In JavasScript, NaN == NaN => false. But we consider two NaN as equal)</li>
|
||||
<li>Both values represent the same regular expression (In JavasScript,
|
||||
/abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual
|
||||
representation matches).</li>
|
||||
</ul>
|
||||
|
||||
<p>During a property comparison, properties of <code>function</code> type and properties with names
|
||||
that begin with <code>$</code> are ignored.</p>
|
||||
|
||||
<p>Scope and DOMWindow objects are being compared only be identify (<code>===</code>).</p></div>
|
||||
<p>Scope and DOMWindow objects are being compared only by identify (<code>===</code>).</p>
|
||||
</div></div>
|
||||
<h2 id="Usage">Usage</h2>
|
||||
<div class="usage"><pre class="prettyprint linenums">angular.equals(o1, o2);</pre>
|
||||
<h3 id="Parameters">Parameters</h3>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">o1 – {*} – </code>
|
||||
<p>Object or value to compare.</p></li>
|
||||
<li><code ng:non-bindable="">o2 – {*} – </code>
|
||||
<p>Object or value to compare.</p></li>
|
||||
</ul>
|
||||
<h3 id="Returns">Returns</h3>
|
||||
<div class="returns"><code ng:non-bindable="">{boolean}</code>
|
||||
– <p>True if arguments are equal.</p></div>
|
||||
</div>
|
||||
<h4 id="parameters">Parameters</h4><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>o1</td><td><a href="" class="label type-hint type-hint-object">*</a></td><td><div class="angular-equals-page"><p>Object or value to compare.</p>
|
||||
</div></td></tr><tr><td>o2</td><td><a href="" class="label type-hint type-hint-object">*</a></td><td><div class="angular-equals-page"><p>Object or value to compare.</p>
|
||||
</div></td></tr></tbody></table><h4 id="returns">Returns</h4><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-boolean">boolean</a></td><td><div class="angular-equals-page"><p>True if arguments are equal.</p>
|
||||
</div></td></tr></table></div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue