Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
component with block
import Ember from 'ember';
export default Ember.Component.extend({
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
import Ember from 'ember';
export default Ember.Route.extend({
model: function() {
return {name: 'volvo', year: '1967'};
<h1>Welcome to {{appName}}</h1>
{{#if hasBlock}}
{{yield car}}
{{#my-component car=car}}
import { run } from '@ember/runloop';
export default function destroyApp(application) {
run(application, 'destroy');
import Ember from 'ember';
import Application from '../../app';
import config from '../../config/environment';
const { run } = Ember;
const assign = Ember.assign || Ember.merge;
export default function startApp(attrs) {
let application;
let attributes = assign({rootElement: "#test-root"}, config.APP);
attributes.autoboot = true;
attributes = assign(attributes, attrs); // use defaults, but you can override;
run(() => {
application = Application.create(attributes);
return application;
import Application from '../app';
import config from '../config/environment';
import { setApplication } from '@ember/test-helpers';
import { start } from 'ember-qunit';
import { assign } from '@ember/polyfills';
let attributes = assign({ rootElement: '#main' }, config.APP);
"version": "0.10.6",
"EmberENV": {
"options": {
"use_pods": false,
"enable-testing": false
"dependencies": {
"jquery": "",
"ember": "3.4.3",
"ember-data": "3.4.2"
"addons": {"ember-data"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.