Skip to content

Instantly share code, notes, and snippets.

@arthur5005
arthur5005 / controllers.application.js
Last active August 28, 2016 02:13
Firefox Select Issue
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
selectedVal: 3,
options: [
{ value: 1, text: 'foo', disabled: false},
{ value: 2, text: 'bar', disabled: false},
{ value: 3, text: 'baz', disabled: false}
],
@arthur5005
arthur5005 / controllers.application.js
Last active November 3, 2016 20:38
Computed Property Cache Test
import Ember from 'ember';
export default Ember.Controller.extend({
_prop: 0,
prop: Ember.computed(function() {
return this.get('_prop');
}).volatile(),
propView: null,
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
send() {
this.send('onFooSend');
}
}
});
@arthur5005
arthur5005 / controllers.application.js
Last active February 20, 2017 23:27
Notify Property Change Doesn't Force a Rerender
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Notify Property Change Doesn\'t Force a Rerender',
value: null,
actions: {
setValueToNull() {
this.set('value', null);
this.notifyPropertyChange('value');
},
@arthur5005
arthur5005 / controllers.application.js
Last active April 25, 2017 22:44
Infinite Controller Instantiation
import Ember from 'ember';
export default Ember.Controller.extend({
applicationController: Ember.inject.controller('application'),
appName: 'Ember Twiddle',
someComputed: Ember.on('init', function() {
const applicationController = this.get('applicationController');
})
@arthur5005
arthur5005 / keybase.md
Created September 9, 2019 20:37
keybase.md

Keybase proof

I hereby claim:

  • I am arthur5005 on github.
  • I am arthur5005 (https://keybase.io/arthur5005) on keybase.
  • I have a public key ASBe8r3_fk6D2-iP2CLgKiPrX2ND4Y60gZN8h4igq5p47Ao

To claim this, I am signing this object:

@arthur5005
arthur5005 / controllers.application.js
Created October 15, 2020 03:11 — forked from samselikoff/controllers.application.js
Ember Animated boilerplate
import Ember from 'ember';
import fade from 'ember-animated/transitions/fade';
export default Ember.Controller.extend({
fade
});
@arthur5005
arthur5005 / controllers.application.js
Created October 15, 2020 03:11 — forked from samselikoff/controllers.application.js
Ember Animated boilerplate
import Ember from 'ember';
import fade from 'ember-animated/transitions/fade';
export default Ember.Controller.extend({
fade
});
@arthur5005
arthur5005 / controllers.application.js
Last active October 15, 2020 03:12 — forked from samselikoff/controllers.application.js
Ember Animated boilerplate
import Ember from 'ember';
import fade from 'ember-animated/transitions/fade';
export default Ember.Controller.extend({
fade
});