我是新的反应,并试图创建我自己的滚动条。我使用本地JSON来模拟获取数据,然后将数据作为“卡片”列出。我构建了几个其他组件来组织和处理信息,如下所示:
Scrollbar (Buttons to Navigate)
|-->CardList (Handles iterating over the cards)
|-->Cards (Template for displaying an individual card)
我遇到的问题是,当我触发Button handleNext时,它将成功地更新偏移量&限制,并将它们传递给CardList。但是,它不对数组
我的应用程序出现了下面的错误
Error: [$rootScope:infdig] http://errors.angularjs.org/1.4.1/$rootScope/infdig?p0=10&p1=%5B%5D
at m.prototype.$digest (https://localhost:44301/angular.min.js:132:501)
at m.prototype.$apply (https://localhost:44301/Scripts/angular.min.js:135:159)
at Anonymous function (htt
我在一个模板中有这个:
<div>{{String(element.elementId)}}</div>
但是我得到了这个错误:
TableBasicExample.html:6 ERROR TypeError: _co.String is not a function
at Object.eval [as updateRenderer] (TableBasicExample.html:6)
at Object.debugUpdateRenderer [as updateRenderer] (core.js:14727)
at checkAndU