Skip to content

Instantly share code, notes, and snippets.

View jkarsrud's full-sized avatar

Jesper Haug Karsrud jkarsrud

View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
layout: Ember.computed('shouldRender', function() {
return !this.get('shouldRender') ? '' : 'my-component';
}),
init() {
this._super(...arguments);
this.set('shouldRender', false);
console.log(this.isVisible);
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
this.set('model', {
launchedat: null,
duration: 20
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});