So we are using meteor and neo4j using the neo4jReactivity package:
So we have some code that populates on web app:
Template.map.helpers({
bits: function() {
var myBits = Template.instance().bits.get();
console.log(myBits);
return myBits;
}
});
Template.map.created = function(){
var self = this;
console.log('map rendered.');
self.bits = new ReactiveVar("bits not yet processed.");
Meteor.neo4j.call('allBits',{},function(error,data) {
if (error)
console.log(error);
else
self.bits.set(data['a']);
});
};
And then in our html page we have:
{{ #each bits }}
test<br/>
{{/each }}
But we are getting the error:
Uncaught Error: {{#each}} currently only accepts arrays, cursors or falsey values.
Any thoughts on how to emulate the cursor structure? Thanks!