0
我有这个表:UI-SREF包括NG-repeat循环参数
<table class="table tenant-table text-center">
<thead>
<tr>
<th class="text-center">
<i class="fa fa-per"></i> Date
</th>
<th class="text-center">
<i class="fa fa-calendar"></i> Result
</th>
<th> </th>
</tr>
</thead>
<tbody>
<tr ng-repeat="(k, v) in loanapps track by $index">
<td data-th="Date">{{v.ApplicationDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
<td data-th="Result">
<a ng-if="v.LoanStatus == 'Approved'" ui-sref="approved({loanid: {{v.ApplicationId}}})" class="btn dark btn-sm btn-outline sbold uppercase">
<i class="fa fa-share"></i> View
</a>
</td>
</tr>
</tbody>
</table>
我想包括参数,经核准重定向的应用程序ID,但我不能够包括网址中的值。我正在采用的ui-sref方法是否正确,或者我需要做一些调整?
提示帮助非常感谢。
谢谢,Laziale
应该是'UI-SREF = “批准({的LoanID:v.ApplicationId})”' – tanmay
@tanmay我一旦我在另一个控制器https://i.gyazo.com/de4c2781fb8d750c9905cd6885012a43.png – Laziale
也可能是一个问题,状态太..我可以分享stateProvider代码? – tanmay