meteor-admin icon indicating copy to clipboard operation
meteor-admin copied to clipboard

waitOn called with params._id please?

Open morgunder opened this issue 9 years ago • 1 comments

I was looking at using the collection: waitOn option to wait for a different collection, but it was not possible to access this.params.id from the router. could you pass that into the waitOn function you call in the edit route creator? otherwise i don't see any way to access the :id from the route in the waitOn option.

thx

morgunder avatar Feb 27 '16 08:02 morgunder

not used to coffee script but would this fix it?

both/startup.coffee:125 waitOn: -> Meteor.subscribe 'adminCollectionDoc', collectionName, parseID(@params._id) collection.routes?.edit?.waitOn(@params._id)

morgunder avatar Feb 27 '16 08:02 morgunder