Here is my code:
function ParentCtrl($scope) { $scope.people = [\"Tom\", \"Dick\", \"Harry\"]; $scope.count = $scope.people.length; } function ChildCtrl($scope)
Also you can get the Scope of any controller by DOM:
$needleScope = angular.element(aDomElement).scope()
Using jQuery:
$needleScope = $('#aDomElementId').scope()
Or get all Scope in the document:
$allScopes = $('.ng-scope').scope()