Skip to content

Instantly share code, notes, and snippets.

View dbachet's full-sized avatar

Damien Bachet dbachet

View GitHub Profile
import Controller from '@ember/controller';
import { computed } from '@ember/object';
const values = [
0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
];
export default Controller.extend({
sliderIndex: 1,
@dbachet
dbachet / components.child\.hbs
Last active May 7, 2021 17:34 — forked from chriskrycho/components.child\.hbs
local and global state
<div>
{{@name}} is checked: {{this.isChecked}}
</div>
<Input
@type="checkbox"
@checked={{this._isChecked}}
{{on "click" (fn @onClick this._isChecked)}} />
import Component from '@ember/component';
export default Component.extend({
tagName: 'div',
classNames: ['yay-class']
});