Skip to content

Instantly share code, notes, and snippets.

<!-- Solution brought to you by Caroline Schnapp -->
<!-- See this: http://wiki.shopify.com/Related_Products -->
{% assign image_size = 'compact' %}
{% assign heading = 'Other fine products' %}
{% if product.tags.size > 0 %}
<h3>{{ heading }}</h3>
<ul class="related-products"></ul>
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'button',
click(evt) {
console.log('x-button click', evt); // will be torn down
this.sendAction();
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});