Improve this Doc View Source angular.mock.dump

From Get docs
< Improve this Doc ngMock‎ | functionAngularjs/docs/1.8/api/ngmock/function/angular.mock.dump


Improve this Doc View Source angular.mock.dump

  1. function in module ngMock

Overview

NOTE: This is not an injectable instance, just a globally available function.

Method for serializing common AngularJS objects (scope, elements, etc..) into strings. It is useful for logging objects to the console when debugging.


Usage

angular.mock.dump(object);

Arguments

Param Type Details
object * any object to turn into string.


Returns

string a serialized string of the argument


© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.
https://code.angularjs.org/1.8.2/docs/api/ngMock/function/angular.mock.dump