Skip to content

Instantly share code, notes, and snippets.

View bendemboski's full-sized avatar

Ben Demboski bendemboski

  • Turbopatent Corp.
  • Seattle, WA
View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
names: [{name: 'dani'}],
names2: null,
actions: {
change() {
@bendemboski
bendemboski / controllers.application.js
Last active April 15, 2018 17:45 — forked from nkgm/controllers.application.js
Computed Update Count
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
_fullName: '',
fullName: Ember.computed('_fullName', {
get() {
return this.get('_fullName');
},
import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
setCalls: [], // mea culpa!
prop1: computed({
get() {
return 'Initial Prop1 Value';
},
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Component.extend({
draggable: true,
attributeBindings: ['draggable'],
classNames: ['p-4 border'],
dragEnd() {
alert("the drag ended")
},