我正在使用AngularJS来显示记录
<tr class="highlight" ng-repeat="sector in sectors | filter:searchText">
<td>
{{sector.Name}}
</td>
</tr>
我想使用
在{{sector.Name}}
中添加一个链接
<a href="@Url.Action("Delete", "Sectors")">
{{sector.Name}}
</a>
问题在于我认为不能{{sector.ID}}
@Url.Action
这样<a href="@Url.Action("Delete", "Sectors", new { id = {{sector.ID}} })">
那么无论如何都要在链接中使用我的sector.ID
吗?
答案 0 :(得分:0)
没关系。我用这个
找到了答案<a ng-href="@Url.Action("Details", "Sectors")?id={{sector.ID}}">