Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Catch-All Route doesnt have loading states
import Ember from 'ember';
export default Ember.Route.extend({
});
<h1>Application Template</h1>
{{outlet}}
<h2>Loading My-Catch-All route</h2>
import Ember from 'ember';
export default Ember.Route.extend({
model() {
return new Ember.RSVP.Promise(resolve => {
Ember.run.later(() => resolve({}), 3000);
});
},
});
<h2>Catch All Resolved</h2>
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('my-catch-all', {
path: '*myCatchAllStuff',
});
});
export default Router;
{
"version": "0.12.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": true,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.12.0",
"ember-template-compiler": "2.12.0",
"ember-testing": "2.12.0"
},
"addons": {
"ember-data": "2.12.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.