blob: 5f18c47fd97153c4a93286fb8c9acadb77ba2309 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<h1><code ng:non-bindable="">angular.identity</code>
<span class="hint">(API in module <code ng:non-bindable="">ng</code>
)</span>
</h1>
<div><h2 id="Description">Description</h2>
<div class="description"><p>A function that returns its first argument. This function is useful when writing code in the
functional style.</p>
<pre class="prettyprint linenums">
function transformer(transformationFn, value) {
return (transformationFn || identity)(value);
};
</pre></div>
<h2 id="Usage">Usage</h2>
<div class="usage"><pre class="prettyprint linenums">angular.identity();</pre>
</div>
</div>
|