samedi 22 août 2015

ember how not to render parents template?

I have a nested routes like this:

Router.map(function() {
  this.route('home', {path : '/'});
  this.resource('posts', function() {
    this.route('new', {path: '/:post_id'});
 });
});

My 'posts' page shows recent posts, and my 'posts/new' page should show only a form for creating new post, so I shouldn't render template for 'posts' page in 'posts/new'. How can I do this and is it even right way?




Aucun commentaire:

Enregistrer un commentaire