Skip to content

Instantly share code, notes, and snippets.

Aaron Fischer aaronfischer

Block or report user

Report or block aaronfischer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@aaronfischer
aaronfischer / controllers.application.js
Created Apr 18, 2018 — forked from sukima/controllers.application.js
test iterate object and change value
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
thing: {
'first-name': 'Aaron',
'hello_last-name': '',
'status': '',
},
@aaronfischer
aaronfischer / controllers.foo.js
Last active Jan 18, 2018 — forked from sukima/controllers.foo.js
Infinate route refresh two task approach - from @sukima
View controllers.foo.js
import Ember from 'ember';
export default Ember.Controller.extend({
people: Ember.computed.or('model.{current,previous}.value'),
isLoading: Ember.computed.reads('model.current.isRunning'),
fetchError: Ember.computed.reads('model.current.error'),
actions: {
fetchMore() {
this.send('refreshModel');
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
db: Ember.computed('refreshDb', function() {
let dump = window.server.schema.db.dump();
return JSON.stringify(dump, null, 2);
}),
@aaronfischer
aaronfischer / adapters.application.js
Last active Jan 19, 2018 — forked from samselikoff/mirage.config.js
mirage reflexive - include error
View adapters.application.js
import DS from 'ember-data';
import UrlTemplates from 'ember-data-url-templates';
export default DS.JSONAPIAdapter.extend(UrlTemplates, {
host: '',
namespace: 'api',
urlTemplate: '{+host}/{+namespace}/{pathForType}{/id}',
});
View adapters.application.js
import Adapter from "ember-data/adapters/json-api";
export default Adapter.extend();
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
You can’t perform that action at this time.