angular.mock.debug (API in module ng )

Description

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

Method for serializing common angular objects (scope, elements, etc..) into strings, useful for debugging.

This method is also available on window, where it can be used to display objects on debug console.

Usage

angular.mock.debug(object);

Parameters

Returns

{string}

a serialized string of the argument