Skip to content

Instantly share code, notes, and snippets.

Wesley Workman workmanw

Block or report user

Report or block workmanw

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
@workmanw
workmanw / controllers.application.js
Last active Oct 23, 2017
ember-data#4918 / UnloadRecord State
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
store: Ember.inject.service('store'),
errorMsgs: null,
init() {
this._super(...arguments);
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
const categories = {
PEOPLE: 'People',
NATURE: 'Nature',
FOODS: 'Foods',
@workmanw
workmanw / controllers.todo-list.js
Last active Jun 21, 2017
model.unload() => FilteredRecordArray null values (working)
View controllers.todo-list.js
import Ember from 'ember';
const {
computed,
get,
} = Ember;
export default Ember.Controller.extend({
store: Ember.inject.service(),
@workmanw
workmanw / controllers.todo-list.js
Last active Jun 21, 2017
model.unload() => FilteredRecordArray null values (broken)
View controllers.todo-list.js
import Ember from 'ember';
const {
computed,
get,
} = Ember;
export default Ember.Controller.extend({
store: Ember.inject.service(),
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
retry() {
this.get('retryTransition').retry();
}
}
@workmanw
workmanw / components.x-year-month.js
Last active Apr 26, 2017
Split Date w/ Two-Way Computed
View components.x-year-month.js
import Ember from 'ember';
import moment from 'moment';
export default Ember.Component.extend({
value: Ember.computed('month', 'year', {
get() {
let month = this.get('month') - 1;
let year = this.get('year');
return moment().year(year).month(month);
View components.x-button.js
import Ember from 'ember';
import ThemeMixin from 'app/mixins/theme';
export default Ember.Component.extend(ThemeMixin, {
tagName: 'button',
label: '',
themeType: 'button'
});
@workmanw
workmanw / controllers.application.js
Created Mar 1, 2017
Model-Fragment - Fork Addon - 2
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@workmanw
workmanw / controllers.application.js
Last active Mar 1, 2017
Model-Fragment - Fork Addon - 1
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@workmanw
workmanw / controllers.application.js
Last active Mar 2, 2017
Model-Fragments - Bad Import
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.