Skip to content

Instantly share code, notes, and snippets.

View components.my-component\.js
import Component from '@glimmer/component';
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
export default class extends Component {
@tracked items
constructor() {
super(...arguments);
@rlivsey
rlivsey / ember-fest-2018.md
Last active Oct 19, 2018
Ember Fest 2018
View ember-fest-2018.md
@rlivsey
rlivsey / controllers.application.js
Created Sep 18, 2018
Sticky Query Params Issue
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View components.a-component.js
import Ember from 'ember';
export default Ember.Component.extend({
name: null,
counter: 1,
didRender() {
this._super(...arguments);
console.log(`didRender called on ${this.get('name')}`);
},
View roooter.js
// services/router.js
import Router from '@ember/services/router' // or wherever it lives
import Evented from '@ember/evented'
export default Router.extend(Evented);
// your helper
export default Helper.extend({
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
user: Ember.Object.create({
name: "Bob Bobbington",
things: [
Ember.Object.create({ name: "A thing" })
]
})
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.