Numtel:mysql and aslagle:reactive-table (Solved)



aslagle:reactive-table accepts collections or arrays as data source. But numtel:mysql exposes a MysqlSubscription object on the client. Is there a way to convert it to an array so reactive-table can use it? Any examples?


Nevermind. I figured it out myself:

I have a MysqlSubscription called Customers and the following template:

customers: function() {
var list = [];
var result = Customers.reactive();
result.forEach(function(item) { list.push(item) })
return list;

on my template:
{{ > reactiveTable collection=customers }}

And voila!#