By default, child scopes prototypically inherit from the parent scope (see Scope), so you already have access to the parent controller’s $scope properties in the child. To prove it:
function ChildCtrl($scope) {
alert($scope.people)
}
By default, child scopes prototypically inherit from the parent scope (see Scope), so you already have access to the parent controller’s $scope properties in the child. To prove it:
function ChildCtrl($scope) {
alert($scope.people)
}