Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
https://www.npmjs.com/package/angular2-infinite-scrollライブラリを使用して Angular 2 アプリに無限スクロールを追加していますが、次のエラーが表示されます
の各要素にarrayは のようなオブジェクトがあるため、 内に値を持つプロパティを{id: number}プッシュする必要があります。objectidnumberarray
array
{id: number}
object
id
number
array.push({id: i})