Skip to content

Instantly share code, notes, and snippets.

@hjdivad
hjdivad / controllers.application.js
Created February 20, 2019 02:17
subroute model recomputation
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Object.extend({
deleteRecord(store, modelClass, snapshot) {
return Ember.RSVP.resolve();
}
});
import Ember from 'ember';
export default Ember.Component.extend({
attributeBindings: ['tabindex'],
classNames: ['sortable'],
tagName: 'div',
});
import Ember from 'ember';
const values = [
0, 10, 20, 30,
];
export default Ember.Controller.extend({
sliderIndex: 1,
values: Ember.computed('sliderIndex', function() {
@hjdivad
hjdivad / adapters.application.js
Last active July 11, 2017 20:01
set -> destroy -> unload semantics
import Ember from 'ember';
import DS from 'ember-data';
const { RSVP: { resolve }} = Ember;
export default DS.Adapter.extend({
deleteRecord() {
return resolve(null);
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@hjdivad
hjdivad / adapters.application.js
Last active February 16, 2017 03:21 — forked from danielspaniel/adapters.application.js
hasMany not cleared by pushPayload
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
});
@hjdivad
hjdivad / adapters.application.js
Created February 16, 2017 03:19 — forked from danielspaniel/adapters.application.js
hasMany not cleared by pushPayload
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
});
{
"summary": {
"build": {
"type": "initial",
"count": 0,
"outputChangedFiles": [
"assets/ena.css",
"assets/ena.js",
"assets/ena.map",
"assets/failed.png",
{
"summary": {
"buildCount": 0,
"output": "/Users/dhamilto/src/hjdivad/ena2.4/tmp/broccoli_merge_trees-output_path-NnUesZPT.tmp",
"totalTime": 1322393786,
"totalNodes": 320,
"stats": {
"fs": {
"realpathSync": {
"count": 375,