swipely / aviator

Aviator is a single-page front-end router built for modularity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use the nearest ancestor target if none is provided

hojberg opened this issue · comments

It should be allowed to provide the following config and have use the nearest ancestral route target:

Aviator.setRoutes({
  '/articles': {
    target: articleRouteTarget,
    '/comments': {
      '/:id': 'showComment'
    }
  }
});