我有一个表,其中填充了基于用户输入的API数据.
然后我显示结果如下:
<tr ng-repeat="show in data.popularMatches">
<td><a href="#" ng-click="selectShow('{{show.id}}')">{{show.title}}</a></td>
<td>{{show.title_description}}</td>
</tr>
Run Code Online (Sandbox Code Playgroud)
我想要实现的是,selectShow当点击每个节目的链接时,将每个节目的ID传递给我的Angular控制器中的函数.我怎样才能做到这一点?
| 归档时间: |
|
| 查看次数: |
89 次 |
| 最近记录: |