UNPKG

knowhow-server

Version:

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

21 lines (20 loc) 1.69 kB
<a href="http://github.com/angular/angular.js/tree/v1.2.9/src/ngMock/angular-mocks.js#L832" 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/ngMock/angular-mocks.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">angular.mock.dump</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-mock-dump-page"><p><em>NOTE</em>: this is not an injectable instance, just a globally available function.</p> <p>Method for serializing common angular objects (scope, elements, etc..) into strings, useful for debugging.</p> <p>This method is also available on window, where it can be used to display objects on debug console.</p> </div></div> <h2 id="usage">Usage</h2> <div class="usage"><pre class="prettyprint linenums">angular.mock.dump(object);</pre> <h4 id="usage_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>object</td><td><a href="" class="label type-hint type-hint-object">*</a></td><td><div class="angular-mock-dump-page"><ul> <li>any object to turn into string.</li> </ul> </div></td></tr></tbody></table><h4 id="usage_returns">Returns</h4><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-mock-dump-page"><p>a serialized string of the argument</p> </div></td></tr></table></div> </div>