Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show named substates #3

Open
rwjblue opened this issue Apr 5, 2016 · 0 comments
Open

Show named substates #3

rwjblue opened this issue Apr 5, 2016 · 0 comments

Comments

@rwjblue
Copy link

rwjblue commented Apr 5, 2016

Added in 1.11: http://emberjs.com/blog/2015/03/27/ember-1-11-0-released.html#toc_named-substates

For example, given:

this.route('posts');
this.route('post', {path: '/posts/:post_id'}, function () {
  this.route('new');
  this.route('edit');
  this.route('comments', function() {
    this.route('new');
  });
});
this.route('signup');

A few of the named substates (in addition to the normal loading/error substates) would be:

application-loading
application-error
posts-loading
posts-error
post-loading
post-error
new-loading
new-error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant