Skip to content

Instantly share code, notes, and snippets.

@jgdovin
Created April 3, 2015 15:04
Show Gist options
  • Save jgdovin/875a7142ff2807083099 to your computer and use it in GitHub Desktop.
Save jgdovin/875a7142ff2807083099 to your computer and use it in GitHub Desktop.
this.route('quotes.edit', {
path: '/quote/edit/:quoteId',
waitOn: function() {
return [
Meteor.subscribe('products'),
Meteor.subscribe('accounts')
]
},
data: function() {
return {
quote: Quotes.findOne({_id : this.params.quoteId}),
account: Accounts.findOne({_id : Quote.findOne({_id:this.params.quoteId}).accountId}),
lineItems: lineItems.find({ quoteId : this.params.quoteId })
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment