Router

We can interface nicely with the router component, too. You're seeing that in action now!


How?

Typically Durandals router module requires you to specify a moduleId for each route.

To allow Webpack to know these are actual dependencies, we instead set each moduleId to the actual ViewModel module instance instead, and override the core Durandal composition and system modules to handle it.


Asynchronous Routes!