Last active
October 11, 2018 12:53
-
-
Save jneurock/1d52b64cb7f2cec1bcf4b121779e05a9 to your computer and use it in GitHub Desktop.
Ember Data Cart Items Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Route from '@ember/routing/route'; | |
export default Route.extend({ | |
async model() { | |
let [cart] = await this.store.query('cart', { | |
include: 'cart-items.address' | |
}); | |
return cart; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment