Skip to content

Instantly share code, notes, and snippets.

@nightire
Last active August 25, 2018 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nightire/88216926dc40f7b3af11fe1ec3d9abeb to your computer and use it in GitHub Desktop.
Save nightire/88216926dc40f7b3af11fe1ec3d9abeb to your computer and use it in GitHub Desktop.
Issue 16821
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
appVersion: Ember.VERSION,
});
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('foobar');
});
export default Router;
<h1>Welcome to {{appName}}</h1>
<br>
Current Version: {{appVersion}}
<br>
Click "Open Menu" -> "Foobar", will cause a full refresh.
{{outlet}}
<br>
{{#basic-dropdown renderInPlace=true as |dd|}}
{{#dd.trigger}}<button>Open Menu</button>{{/dd.trigger}}
{{#dd.content}}
<div>
{{link-to "Index" "index"}}
</div>
<div {{action dd.actions.close}}> {{!-- because of this `onclick` --}}
{{link-to "Foobar" "foobar"}}
</div>
{{/dd.content}}
{{/basic-dropdown}}
<br>
{
"version": "0.15.0",
"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.2.2",
"ember-template-compiler": "3.2.2",
"ember-testing": "3.2.2"
},
"addons": {
"ember-basic-dropdown": "1.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment