Skip to content

Instantly share code, notes, and snippets.

@jamerson
jamerson / application.controller.js
Last active December 23, 2015 20:26
calculator-bad-example
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Calculator without componentization - Bad Example',
currentValue: '',
history: [],
actions: {
@jamerson
jamerson / activity-widget.component.js
Created October 28, 2015 07:29
Communication Between Distant Components
import Ember from 'ember';
export default Ember.Component.extend({
feedService: Ember.inject.service('feed'),
activities: [], // the template will display this array
});
@jamerson
jamerson / application.controller.js
Last active October 11, 2015 16:32
Removing viewName property
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});