https://github.com/buschtoens/mu-nested-routes
https://github.com/buschtoens/mu-nested-routes
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/buschtoens/mu-nested-routes
- Owner: buschtoens
- Created: 2018-11-20T12:47:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:16:11.000Z (almost 2 years ago)
- Last Synced: 2024-10-09T12:43:54.160Z (12 months ago)
- Language: JavaScript
- Size: 122 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mu-nested-routes
This repo demos a bug in the Module Unification resolver. It does not work for routes which are nested three levels deep and have an auto-generated `Route` or `Controller`.
This is the `router.js`:
```js
Router.map(function() {
this.route('foo', function() {
this.route('bar', function() {
// You don't even need to register a third-level route. Just providing the
// callback triggers the error, because of the implicit `index` route.
// this.route('qux');
});
});this.route('no', function() {
this.route('auto-generated', function() {
// Implicit `index` here works, because the `controller.js` and `route.js`
// for `no/auto-generated/index` exist.
});
});this.route('one', function() {
this.route('two');
});
});
```### Instructions
```
git clone git@github.com:buschtoens/mu-nested-routes.git
cd mu-nested-routes
yarn
ember s
```Open http://localhost:4200/
You don't need to pass the MU env flag, since `.ember-cli.js` already does that for you.