Skip to content

Instantly share code, notes, and snippets.

@dfreeman
Last active August 15, 2016 19:18
Show Gist options
  • Save dfreeman/9dcc564398dd6103888767c6dea02d75 to your computer and use it in GitHub Desktop.
Save dfreeman/9dcc564398dd6103888767c6dea02d75 to your computer and use it in GitHub Desktop.
loading
{{#link-to 'products.mapped-product' 'foo'}}Mapped Product{{/link-to}}
{{outlet}}
import Ember from 'ember';
export default Ember.Route.extend({
model() {
return new Promise(resolve => setTimeout(resolve, 2000));
}
});
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('products', function() {
this.route('mapped-product', { path: ':product_id' });
});
});
export default Router;
{
"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