Pagination in a FlowRouter/BlazeLayout application


#1

So my application is fairly simple, I have an Items collection and I just want to present simple to use pagination.

I found this package, but I’ve been having trouble integrating it with my application.


The error I’m getting is:

Uncaught TypeError: Cannot read property ‘helpers’ of undefined


Relevant code:

// lib/collection.js
Items = new Mongo.Collection('items');
Messages = new Mongo.Collection('messages');
Pages = new Meteor.Pagination(Items);

<template name="itemsList">
  {{> pages }}
  {{> pagesNav }}
</template>

I’m just kind of lost at this point. Does anybody have a dead simple example I can take a look at? For context my project is up on Github.


#2

I’m going to give this package a shot, hold my beer! :beer:

https://atmospherejs.com/miguelalarcos/flow-router-pagination