Blog- AngularJS-parent-child-scope

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>

JavaScript

function ParentCtrl($scope) {
   //some function check whether the data from Child scope is null
    //How do I access the data object from child scope
}

function ChildCtrl($scope) {

    $scope.data={};
    $scope.func = function(){
      $scope.data.x = 1;

   };
};