Skip to content

Instantly share code, notes, and snippets.

@jacobq
jacobq / components.my-component.js
Last active December 20, 2018 16:56 — forked from FabHof/components.my-component.js
re-render hooks
import Ember from 'ember';
//import { stringify } from 'twiddle/utils/stringify';
let lastValue = null;
let lastAttrsValue = null;
export default Ember.Component.extend({
didUpdateAttrs() {
//this._super(...arguments);
console.log("didUpdateAttrs",
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
isHidden: false
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@jacobq
jacobq / app.transitions.js
Last active December 15, 2020 01:58 — forked from Gaurav0/controllers.application.js
Modal Dialog Test
// Problem happens regardless of duration, but unless using
// the `.velocity-animating` CSS hack it is easier to see with longer durations.
const options = {duration: 1000, easing: 'easeInOutQuad'};
export default function(){
this.transition(
// this works
//this.use('fade')
// this has a glitch; can see second copy/ghost of modal in top left when closing