angular 中的 limitTo 过滤器是否会阻止在 ng-repeat 中加载其他项目?

Does the limitTo filter in angular prevent loading other items in ng-repeat?

如果我实现一个 'load more' 按钮来增加 Angular.js 中的 limitTo 过滤器,过滤器会阻止加载整个 ng-repeat 数组吗?

例如,如果我的 ng-repeat 中有 100 张图片怎么办?我对此实施了一个带有“9”的 limitTo 过滤器。用户是在页面加载时下载 100 张图片还是只下载 9 张图片?

Yes.It 限制为 9 张图片。

这是来自 Angular 文档:

limitTo

Creates a new array or string containing only a specified number of elements. The elements are taken from either the beginning or the end of the source array, string or number, as specified by the value and sign (positive or negative) of limit. If a number is used as input, it is converted to a string.

Angular js将创建一个包含9个元素的新数组并迭代这9个