Skip to content

Instantly share code, notes, and snippets.

@pradhyu
Last active June 21, 2016 02:20
Show Gist options
  • Save pradhyu/1774776e3271540ce5cb1c590d9f4d6b to your computer and use it in GitHub Desktop.
Save pradhyu/1774776e3271540ce5cb1c590d9f4d6b to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route("runtests");
this.route("myroute");
});
export default Router;
{{#link-to 'application'}}<h1>Welcome to {{appName}}</h1>
{{/link-to}}
{{outlet}}
<br>
{{link-to "my-route" 'myroute'}}
<br>
{{link-to "runTests" "runtests"}}
<br>
<h1>Run-tests</h1>
{
"version": "0.9.3",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.6.0",
"ember-data": "2.6.1",
"ember-template-compiler": "2.6.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment