Skip to content

Instantly share code, notes, and snippets.

View HenryVonfire's full-sized avatar

HenryVonfire

View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions:{
saveMessage(message) {
console.log("message", message);
}
}
@HenryVonfire
HenryVonfire / README_01.md
Last active February 15, 2016 09:22 — forked from rwjblue/application.controller.js
ember collection in twiddle
@HenryVonfire
HenryVonfire / 01_README.md
Last active November 5, 2015 14:14 — forked from rwjblue/01_README.md
Canary Base
@HenryVonfire
HenryVonfire / README_01.md
Last active November 5, 2015 14:11 — forked from varblob/application.controller.js
Expandable list v3

Version 3 of the example of a simple expandable list. In this example the problem is solved by extending the model to allow it to content information of the view. This way, whichever is using the model will know the state of the items inside (expanded or not expanded), so the controller will be able to handle it.

View Twiddle | Copy Twiddle | View Gist

Original idea of this README taken from @rwjblue

@HenryVonfire
HenryVonfire / README_01.md
Last active November 5, 2015 14:11 — forked from spencer516/application.controller.js
Expandable list v2

Version 2 of the example of a simple expandable list. In this example the problem is solved in a isolated way. The controller doesn't need to know that the list is or isn't expanded, all is handle by the component.

View Twiddle | Copy Twiddle | View Gist

Original idea of this README taken from @rwjblue

@HenryVonfire
HenryVonfire / 01_README.md
Created October 16, 2015 14:27 — forked from rwjblue/01_README.md
Simple Router Service
@HenryVonfire
HenryVonfire / 01_README.md
Last active October 20, 2015 08:27 — forked from rwjblue/01_README.md
New Twiddle
import Ember from 'ember';
import { BusListenerMixin } from 'demo-app/services/bus';
export default Ember.Component.extend(BusListenerMixin, {
classNames: ['message-listener'],
_setup: function() {
this.set('messageLog', []);
}.on('didInitAttrs'),