paginate
Pagination of arrays
Params
array- Array to paginatehash.by{Number}Number per page, requiredreturns{Object}Paginate object
Usage
{{#paginate array by=page_size}}
{{#each array as |item|}}
{{item}}
{{/each}}
{{/paginate}}
Example
{{#paginate collection.products by=5}}
{{#each collection.products as |product|}}
{{ product.title }}
{{/each}}
{{/paginate}}
paginate object
The paginate object can be accessed in the block context as paginate helper
Note: The paginate object is not available outside the block context. More detailed examples of Seed are available.
Was this article helpful to you?