title: How can i transfer data between ng controllers ( with localhost link api )
body: <p>I have a buttonclick on my tr,  After i press on my tr, i want it to transfer the data that was inside of that tr to the next ng-controller.</p>
  
  <p>I've been searching much for solution but it looks like i need to make a angular.module and connect the controllers together? or does it work with a localhostlink? You dont need to solve it, im totaly stuck, just some advice would be nice. Thank you in advance.</p>
  
  <p></p>
  
  <pre><code>&lt;div ng-controller="customersController"&gt;
  
      &lt;table&gt;
          &lt;tr ng-click=getid(order) ng-repeat="x in Id"&gt;
              &lt;td&gt;{{ x.firstname }}&lt;/td&gt;
              &lt;td&gt;{{ x.lastname}}&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  
  &lt;/div&gt;
  
  &lt;div ng-controller="showinfo"&gt;
  
      &lt;p&gt;id:{{ x.firstname}}&lt;/p&gt;
      &lt;p&gt;name:{{ x.lastname}}&lt;/p&gt;
  
  
  &lt;/div&gt;
  </code></pre>
  
  <p>this is my script
      </p>
  
  <pre><code>     function customersController($scope, $http) {    
  
  
        $scope.getid= function (order) {
  
  
  
          };
  
          $http.get("localhostlink")
              .success(function (response) {
                  $scope.Id = response;});
       }
  </code></pre>
  
  <p></p>