ng-click in repeat tr,如何让它转到想要的页面?

ng-click in repeat tr, how to make it to go to the desired page?

这是我的重复table:

<tr ng-repeat="expenses in vm.expense | orderBy:'days'" 
     class="start-text" ng-click="location.path('/expense/{{expenses._id}}')">

我希望它转到 /expense/1234,但当我单击

时它什么也没做

我也有这个按钮:

<a ui-sref="expense/new">
    <button class="start-expense-btn start-button" 
            style="width:120px;">NEW EXPENSE</button>
</a>

那个工作完美,使用参数 new 转到 /expense/

那么我如何 ui-sref 进入那个 ng-click(如果那是我必须做的)。

控制器内部有功能,

$scope.changeLocation = function(expense){
   var pathtoNavigate = "/expense/"+ expense.id;
   $location.path(pathtoNavigate);
}

并在 ng-click 函数中传递费用,

 ng-click="changeLocation(expenses)"