title: Pass a variable from controllers
body: <p>I am programing in Angularjs, and have have a page that is divided into 3 teplates which one has an html file and js file.
  The js file of which template is characterized for having the controller of the html of that template. 
  At the end i want to pass a variable from a certain controller to another how can i do that once they are in different controllers. Thanks </p>
  
  <p>Mr.Avraam Mavridis, here is some code:</p>
  
  <p>Basically down here is the controller that i want to get the value of the parameter (clientPosition) to pass it to another controller:</p>
  
  <pre><code>crm.controller("clientsModule", ["$scope", "$http", function ($scope, $http {  
  $scope.changeTemplate = function (index, clientPosition) {
     $scope.panelTemplate = index;
     $scope.clientPosition = clientPosition;
      };
  }]);
  </code></pre>