Open neil-s opened 8 years ago
+1 for this, imports is much clear and safer
+1 I'm trying to get meteor-admin working with meteor 1.3 and without an import for AdminConfig I'm not sure how to get things rolling. Any direction would be helpful. Thanks!
I'm having trouble with this. What are people doing for this?
Do you have any idea how to make it work ?
AdminConfig = {
collections: {
Posts: {
collectionObject: Posts,
// ...
}
}
};
In Meteor 1.3, the suggested code style is to move collection definitions into
imports
, and then import them where necessary. This package seems to rely on the collections being declared as global objects. Is there a way to workaround for this, or will the package need to add a new option in the configuration, allowing us to pass in the collection object rather than looking it up in the globals based on name?