MCPcopy Index your code
hub / github.com/angular-ui/ui-router / serializeScope

Function serializeScope

test/angular/1.6/angular-mocks.js:1014–1029  ·  view source on GitHub ↗
(scope, offset)

Source from the content-addressed store, hash-verified

1012 }
1013
1014 function serializeScope(scope, offset) {
1015 offset = offset || ' ';
1016 var log = [offset + 'Scope(' + scope.$id + '): {'];
1017 for (var key in scope) {
1018 if (Object.prototype.hasOwnProperty.call(scope, key) && !key.match(/^(\$|this)/)) {
1019 log.push(' ' + key + ': ' + angular.toJson(scope[key]));
1020 }
1021 }
1022 var child = scope.$$childHead;
1023 while (child) {
1024 log.push(serializeScope(child, offset + ' '));
1025 child = child.$$nextSibling;
1026 }
1027 log.push('}');
1028 return log.join('\n' + offset);
1029 }
1030};
1031
1032/**

Callers 1

serializeFunction · 0.70

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected