vendredi 24 juin 2016

Dynamic Outlet for Nested Route in Ember JS

I want to create an interface in Ember that resembles something like Netflix's wherein upon clicking on a movie title the content reveals itself below the poster image. My think is the create a nested route w/

Router.map(function() {
  this.route('movies', {path: '/' }, function() {
    this.route('movie', { path: '/:id'});
  });
});

The problem is that I don't know how I can have a inside of each movie component and tell the nested route to render within the corresponding one. Has anyone created something similar to this w/ nested routes?

enter image description here




Aucun commentaire:

Enregistrer un commentaire