UNPKG

knowhow-server

Version:

A personal workflow engine that can manage and use any network connected host

20 lines (19 loc) 968 B
<a href="http://github.com/angular/angular.js/tree/v1.2.9/src/Angular.js#L348" 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.noop</code> <div><span class="hint">API in module <code ng:non-bindable="">ng</code> </span> </div> </h1> <div><h2 id="description">Description</h2> <div class="description"><div class="angular-noop-page"><p>A function that performs no operations. This function can be useful when writing code in the functional style. <pre class="prettyprint linenums"> function foo(callback) { var result = calculateResult(); (callback || angular.noop)(result); } </pre> </div></div> <h2 id="usage">Usage</h2> <div class="usage"><pre class="prettyprint linenums">angular.noop();</pre> </div> </div>