Skip to content

Instantly share code, notes, and snippets.

View phcoliveira's full-sized avatar

Paulo H. C. de Oliveira phcoliveira

View GitHub Profile
@phcoliveira
phcoliveira / controllers.application.js
Last active February 4, 2020 13:10
Ember Intl - Fake Timers
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
isFalse: false,
actions: {
onSubmit() { alert('SUBMITTED'); }
}
});
@phcoliveira
phcoliveira / application.controller.js
Last active October 24, 2015 00:33
Toggle computed property.
import Ember from 'ember';
// Can't use session or local storage inside this Twiddle, but you get the picture.
var _sessionStorage = {},
// Make _localStorage = { jwt: "something" } to see that the problem is not
// about the value "false", but rather the original value returned by the getter.
_localStorage = {};
export default Ember.Controller.extend({
appName:'Ember Twiddle',