Skip to content

Instantly share code, notes, and snippets.

@teejayhh
Last active April 15, 2019 01:49
Show Gist options
  • Save teejayhh/940566af2fba1540bc31e745573661e9 to your computer and use it in GitHub Desktop.
Save teejayhh/940566af2fba1540bc31e745573661e9 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';
export default Ember.Controller.extend({
});
import EmberRouter from '@ember/routing/router';
import config from './config/environment';
const Router = EmberRouter.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('subscription-type', function() {
this.route('tee')
});
});
export default Router;
import Ember from 'ember';
export default Ember.Route.extend({
});
body {
margin: 12px 16px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12pt;
}
.active {
color: red;
}
a > a {
display: none;
}
a.active {
display: block;
}
a.active > a {
display: block
}
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{#link-to 'subscription-type'}}Subtype
{{#link-to 'subscription-type.tee'}}tee{{/link-to}}
{{#link-to 'subscription-type.tee'}}tee 2{{/link-to}}
{{/link-to}}
{{outlet}}
<br>
<br>
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-data": "3.4.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment