Skip to content

Instantly share code, notes, and snippets.

View kasunvp's full-sized avatar

Kasun Vidanapathirana kasunvp

View GitHub Profile
import Component from '@ember/component';
import groupBy from 'lodash-es/groupBy';
import { computed } from '@ember/object';
export default Component.extend({
debugOutput: computed(function() {
return JSON.stringify(this.bikeSeries(), null, 2);
}),
bikeSeries() {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import DS from 'ember-data';
const { RESTAdapter } = DS;
export default RESTAdapter.extend({
host: 'https://api.github.com'
});