Skip to content

Instantly share code, notes, and snippets.

@derrickshowers
Last active August 5, 2016 01:25
Show Gist options
  • Save derrickshowers/b33e9221a8accd2825713d4fe66ee0ab to your computer and use it in GitHub Desktop.
Save derrickshowers/b33e9221a8accd2825713d4fe66ee0ab to your computer and use it in GitHub Desktop.
Auth Route Sibling
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('homepage', { path: '/' });
this.route('auth', { path: '/', resetNamespace: true }, function() {
this.route('child', { resetNamespace: true });
});
});
export default Router;
import Ember from 'ember';
export default Ember.Route.extend({
});
import Ember from 'ember';
export default Ember.Route.extend({
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{
"version": "0.10.4",
"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.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment