awwx / meteor-offline-data

Meteor offline data project.
MIT License
111 stars 9 forks source link

Is there any way of using offline-data with collection2? #29

Closed Lepozepo closed 10 years ago

Lepozepo commented 10 years ago

I tried this in coffeescript client side:

@OfflineProducts = new Offline.Collection "products"
@Products = new Meteor.Collection2 @OfflineProducts,
    smart:true
    schema:
        name:
            type:String

Server side I just did this

@Products = new Meteor.Collection2 "products",
    smart:true
    schema:
        name:
            type:String
Lepozepo commented 10 years ago

Collection2 just added support for Offline.Collection