samedi 2 janvier 2016

How to reuse routes in Ember 2?

We have fairly complex component - UserProfile.

This component has a number of tabs each with multiple tabs on their own. This results in generating about 20-25 routes for just this component.

Now this component can be visited by multiple routes.

It seems the only way to implement this is to literally copy/paste the routes/templates for UserProfile in every single parent route.

Is it possible to somehow reuse the routes of UserProfile across multiple parents?




Aucun commentaire:

Enregistrer un commentaire