Here is my code:
function ParentCtrl($scope) {
$scope.people = [\"Tom\", \"Dick\", \"Harry\"];
$scope.count = $scope.people.length;
}
function ChildCtrl($scope)
The $scope inheritance is based upon where you reference your controllers using ng-controller.
If you have something like
Then yes, the child controller will inherit the properties of the parent controller.
Note : The child controller need not be defined on the direct child in the html. It can be any child within.