Skip to content

Instantly share code, notes, and snippets.

View lennyburdette's full-sized avatar

Lenny Burdette lennyburdette

  • Apollo GraphQL
  • Boston
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
toggleValue(newValue, isSelected) {
if (isSelected) {
this.send('addValue', newValue);
} else {
this.send('removeValue', newValue);
}
@lennyburdette
lennyburdette / components.bad-parent-component.js
Last active February 15, 2017 00:41 — forked from TRMW/components.my-component.js
Additive class vs. classNames
import Ember from 'ember';
export default Ember.Component.extend({
});