Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'ul',
display: Ember.computed('data.[]', function() {
return this.get('data').slice(-1)[0];
nested: Ember.computed('data.[]', function() {
return this.get('data').slice(0, -1);
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
reversedList: [{id: 21}, {id: 16}, {id: 1}],
<h1>Welcome to {{appName}}</h1>
{{app-activity-tree data=reversedList}}
{{#if nested}}
{{app-activity-tree data=nested}}
"version": "0.10.4",
"EmberENV": {
"options": {
"use_pods": false,
"enable-testing": false
"dependencies": {
"jquery": "",
"ember": "2.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
"addons": {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.