我正在尝试使用angular来创建一个由主题,日期,演示者组织的不同视频的表格,并且还会被标记.
原文链接:https://www.f2er.com/angularjs/142302.html我使用ng-repeat重复我的对象数组来生成一个表.
但是,如何动态更改播放按钮的href链接?
在下面的jsfiddle中,我添加了一个静态行,每行应该是什么样子.第一列有一个链接到视频的fontawesome图标.如何编辑函数以便在ng-repeat中更新href链接?
http://jsfiddle.net/jheimpel/f139z9zx/3/
function playerCtrl($scope) { $scope.topics = [ { "play": "play","topic": "topic 1","date": "date 1","presenter": "presenter 1","tags": "tag" },{ "play": "play","topic": "topic 2","date": "date 2","presenter": "presenter 2",]; }