Skip to content

Instantly share code, notes, and snippets.

@sbatson5
sbatson5 / README.md
Last active May 27, 2018 13:26
Ember Twiddle Demo: Mirage with Ember Twiddle

Ember Twiddle Demo: Mirage with Ember Twiddle

Demo

This is a very trivial example of using mirage with Ember Twiddle.

@sbatson5
sbatson5 / controllers.application.js
Created July 13, 2017 14:31 — forked from czosel/controllers.application.js
one-way-select with prompt
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
options: ['A', 'B', 'C']
});
@sbatson5
sbatson5 / controllers.application.js
Last active September 30, 2016 14:37 — forked from jelhan/controllers.application.js
ember-cli-flash in acceptance test
import Ember from 'ember';
const { inject } = Ember;
export default Ember.Controller.extend({
actions: {
addFlashMessage() {
this.get('flashMessages').info('just a test');
}
},
import Ember from 'ember';
const { Controller, on, get } = Ember;
export default Controller.extend({
data: [],
start: on('init', function() {
const data = get(this, "data");
for (let x=0;x<1000;x++)