一行角度代码在jsfiddle中起作用,但在plunker中起作用

时间:2014-01-11 00:12:47

标签: angularjs

我尝试将一些代码从jsfiddle复制到plunkr。除了最后的ng-repeat(带有时间段的那个)之外,我几乎在plunkr工作了它:

<div ng-controller="taskViewCtrl">
    <table style="width:auto;" class="table table-bordered">
        <tbody ng-model="subtasks">
            <tr ng-repeat="subtask in subtasks" class="item" style="cursor: move;">
                <td>{{$index}} Worker {{subtask.workerId}}</td>
                <td ng-repeat="timeslot in subtask.subtaskArray">{{timeslot}}</td>
            </tr>
        </tbody>
    </table>
</div>

jsfiddle: http://jsfiddle.net/frodefi/dJrG7/17/

plunkr: http://plnkr.co/edit/0IdwZCowqOGp4lco7V90?p=preview

他们使用两种不同的Angular版本(1.02 vs 1.2.7),但我确信问题不存在。很可能我在某个地方犯了一个错误,但在哪里?

0 个答案:

没有答案