<!doctype html>
<html ng-app>
  <head>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.20/angular.min.js"></script>
    <style type="text/css">
    .selected {
      background-color: lightgreen;
    }
    </style>
  </head>
  <body>
    <div ng-controller="ParentController">
      <div>
        Załoga statku: {{firstName}} {{lastName}} i {{crewmen}} marynarzy.
      </div>
      <div ng-controller="ChildController">
        Załoga statku: {{firstName}} {{lastName}} i {{crewmen}} marynarzy.
      </div>
    </div>
    <script>
    function ParentController($scope) {
      $scope.firstName = 'Kaptain';
      $scope.lastName = 'Nemo';
      $scope.crewmen = 30;
    }

    function ChildController($scope) {
      $scope.lastName = 'Columbus';
      $scope.$parent.crewmen = $scope.crewmen + 56;
    }
    </script>
  </body>
</html>