Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

How to match all routes under /xyz/*

$
0
0

Hi,

I’m trying to integrate React into existing Ember app and I would like to have a dedicated route in the ember app where the React is instantiated and then it is not touched by Ember.

I have one template in app/routes/react-route.hbs and then I’ve defined this in the router.js

Router.map(function() {
  this.route('react-route');
});

The problem is that once some of the sub-routes are accessed, it fails with error. I would need somehow to tell ember that all of those

/react-route
/react-route?queryParam=10
/react-route/another-subroute
/react-route/...

should go to the react-route.hbs template. Also when transitioning from /react-route/a to /react-route/b it should not care.

Is this possible with ember router?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles