title: Transfer table row data to html form page in angular
body: <p>Using Angular JS I am trying to pass the data in a table row that is populated dynamically to an html page. The page would then use that object
  that is passed to populate form data.</p>
  
  <p>My html looks like below:</p>
  
  <pre><code>&lt;form data-ng-submit="submit()" name="empRegForm" method="post"&gt;
      &lt;input type="hidden" type="text" ng-model="employee.employeeId" /&gt;
      &lt;fieldset class="table-striped"&gt;
          &lt;input placeholder="Employee Project Id" type="text" ng-model="employee.projectId" tabindex="1" required autofocus&gt;
      &lt;/fieldset&gt;
      &lt;fieldset&gt;
          &lt;input placeholder="Employee Name" type="text" ng-model="employee.employeeName" tabindex="2" required&gt;
      &lt;/fieldset&gt;
      &lt;fieldset&gt;
          &lt;button name="submit" type="submit" id="contact-submit"&gt;Submit&lt;/button&gt;
      &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Method that I have created on the controller is as follows:</p>
  
  <pre><code>$scope.updateEmployee = function(employee) {
      var response = $http.put('localhost:8080/employeeManagement/employee', employee);
      response.success(function(data, status, headers, config) {
          $scope.result = data;
      });
      response.error(function(data, status, headers, config) {
          alert( "Exception details: " + JSON.stringify({data: data}));
      });
  };
  </code></pre>
  
  <p>EmployeeList html table appears as below:</p>
  
  <pre><code>&lt;tr ng-repeat="employee in result.listOfEntities"&gt;
      &lt;td&gt;{{employee.employeeId}}&lt;/td&gt;
      &lt;td&gt;{{employee.employeeName}}&lt;/td&gt;
      &lt;td&gt;&lt;a ng-click="updateEmployee(employee)"&gt; &lt;span class="fa fa-pencil-square-o" aria-hidden="true"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I want to redirect the page to the Update html page that contains the form when this button on the  row is clicked.</p>
  
  <p>Thanks</p>