BlueSpire/Durandal — pull request #169 by arash16 (2013-05-31 22:53:16+00:00)
Title: childRouter.parent is ambiguous

The easiest possible way to create a child router is through the root one (singleton), so the childRouter.parent will become that router. This is no problem when child router is in depth 2, but for depth 3 the parent will become root router which is wrong.

There is two solutions:
- Have a createRouter hooking function in viewModel and pass it parent router, so that this viewModel can create it's router through that parent one. This solution is really complex and not good.
- Ostrich Solution: Don't provide the parent router in child routers. I believe not providing something is better than a ambiguous one.