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.