Skip to content

Instantly share code, notes, and snippets.

@xomaczar
xomaczar / controllers.application.js
Created April 9, 2016 03:30
Render_without_components
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@xomaczar
xomaczar / controllers.application.js
Last active January 12, 2017 23:06
Ember basic dropdown w/ sass
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@xomaczar
xomaczar / controllers.application.js
Last active January 19, 2017 22:34
ember-paper Issues
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@xomaczar
xomaczar / controllers.application.js
Last active February 6, 2018 15:26
ember-paper-twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
selectedFruit: 'Apple',
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
});
@xomaczar
xomaczar / controllers.application.js
Last active March 2, 2017 15:05 — forked from samselikoff/controllers.application.js
ember-cli-mirage with restSerializer
import Ember from 'ember';
export default Ember.Controller.extend({
});
@xomaczar
xomaczar / components.my-dialog.js
Created March 23, 2017 14:23
Ember-data-component-and-route
import Ember from 'ember';
export default Ember.Component.extend({
});
@xomaczar
xomaczar / controllers.application.js
Last active April 19, 2017 03:49
active-title-no-deps
import Ember from 'ember';
export default Ember.Controller.extend({
currentPageTitle: 'Ember Twiddle'
});
@xomaczar
xomaczar / controllers.application.js
Last active June 23, 2017 15:19
Reactive programming
import Ember from 'ember';
const Dose = Ember.Object.extend({
hasReason: false,
name: 'Dose',
});
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
@xomaczar
xomaczar / controllers.application.js
Created August 16, 2017 02:22
Filter with observable helpers
import Ember from 'ember';
const { Controller, A: emberArray } = Ember;
export default Controller.extend({
appName: 'Ember Twiddle',
actions: {
selectState(stateID) {
this.set('matchedFilters', [stateID]);
this.get('matchedFiltersStable').pushObject(stateID);