Skip to content

Instantly share code, notes, and snippets.

Created September 6, 2017 20:04
What would you like to do?
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
router: Ember.inject.service(),
actions: {
goToRoute() {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
queryParams: ['foo']
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
}); {
export default Router;
<h1>Welcome to {{appName}}</h1>
<button {{action "goToRoute"}}>Try transitioning</button>
"version": "0.12.1",
"EmberENV": {
"options": {
"use_pods": false,
"enable-testing": false
"dependencies": {
"jquery": "",
"ember": "release",
"ember-template-compiler": "release",
"ember-testing": "release"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment