Skip to content

Instantly share code, notes, and snippets.

@jelhan
jelhan / adapters.application.js
Last active December 23, 2016 20:04 — forked from samselikoff/mirage.config.js
Mirage dev boilerplate
import DS from 'ember-data';
const { RESTAdapter } = DS;
export default RESTAdapter.extend({});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
showModal: true,
value: 'foo'
});
@jelhan
jelhan / components.my-form.js
Created April 9, 2019 20:14 — forked from IBue/components.my-form.js
ember-bootstrap >= 2.1 submit bubbling problem
import Ember from 'ember';
export default Ember.Component.extend({
submit() {
console.log('submit hook of component');
},
actions: {
noop() {},
submitAction() {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
queryParams: ['foo'],
foo: 'bar',
actions: {
import Controller from '@ember/controller';
import { tracked } from '@glimmer/tracking';
import { cached } from 'tracked-toolbox';
import { scheduleOnce } from '@ember/runloop';
const Observers = [];
class Observer {
tags = [];
cb = null;