Skip to content

Instantly share code, notes, and snippets.

@thorsteinsson
Created May 2, 2016 15:38
Show Gist options
  • Select an option

  • Save thorsteinsson/18dd5b190f6ebaa9e8ebcd503ecc8a24 to your computer and use it in GitHub Desktop.

Select an option

Save thorsteinsson/18dd5b190f6ebaa9e8ebcd503ecc8a24 to your computer and use it in GitHub Desktop.
rootURL
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({
rootURL: '/es/'
});
Router.map(function() {
this.route('index', { path: '/' });
this.route('not-found', { path: '/*path' });
});
export default Router;
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{
"version": "0.7.2",
"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.2.2",
"ember-data": "2.4.3",
"ember-template-compiler": "2.2.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment