Displaying the Keys in an Object
If you need to display all of the keys or values of a JavaScript object in your template, you can use the {{#each-in}} helper:
/app/components/store-categories.js
import Ember from 'ember';
export default Ember.Component.extend({
willRender() {
// Set the "categories" property to a JavaScript object
// with the category name as the key and the value a list
// of products.
this.set('categories', {
'Bourbons': ['Bulleit', 'Four Roses', '