title: Send params into url
body: <p>I'm building up an app using ng-routes. What i'm doing is get info from an api on a list, and i need send a value into the url, because the next page -the detail page of that id- will catch the value.</p>
  
  <p>Next, part of my code. First, i'm getting the info</p>
  
  <pre><code>function getData(){
      $http.get('/api/info')
      .then(function(response){
          $scope.fill = response.data;
          //console.log($scope.fill);
      });
  }
  </code></pre>
  
  <p>And on my html view:</p>
  
  <pre><code>&lt;tbody&gt;
  &lt;tr ng-repeat="a in fill"&gt;
      &lt;th&gt;{{a.Id}}&lt;/th&gt;
      &lt;th&gt;{{a.Name}}&lt;/th&gt;
      &lt;th&gt;{{a.ContactStatus}}&lt;/th&gt;
      &lt;th&gt;{{a.UserAsigned}}&lt;/th&gt;
      &lt;th&gt;&lt;a ng-click="obtainId(a)"&gt;See more&lt;/a&gt;&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>Then, this is the part of the code where i get the id on click</p>
  
  <pre><code>$scope.obtainId = function(a){
      $scope.sendId = a.Id;
      console.log($scope.sendId);
  }
  </code></pre>
  
  <p>My problem comes when i want to send the id to the detail page. I've found the next code to send to another page with ng-routes:</p>
  
  <pre><code>$scope.goToDetail = function(hash){
          $location.path(hash);
      }
  </code></pre>
  
  <p>And on the html views:</p>
  
  <pre><code>&lt;button class="btn btn-danger" ng-click="goHome('/detail')"&gt;&lt;/button&gt;
  </code></pre>
  
  <p>I've tested first this last code, and it works; it open the detail page. Now, how can i send the obtained id (with the onclick action) on the url to the detail page using the <code>$location.path</code> code?</p>
  
  <p>I'm using Javascript and AngularJs.</p>
  
  <p>Hope you can help me.</p>