aurelia / router

A powerful client-side router.
MIT License
120 stars 115 forks source link

WIP feat(router): ability to use classe/module as view model #624

Closed bigopon closed 5 years ago

bigopon commented 5 years ago

Changes:

TODO:

@davismj @EisenbergEffect

fkleuver commented 5 years ago

For readability/maintainability this is nothing but improvement, no question there. Some of this should have happened a long time ago, but it's good to see it happening now :) I have a vague gut feeling about the switch to async/await that timings are going to be affected. It makes it feel like a somewhat risky PR. But the long term benefit can be really big. Looking forward to those integration tests 😆

EisenbergEffect commented 5 years ago

Big thanks to @bigopon and @davismj for breathing a lot of new life like this into the router over the last several months. This looks like a nice set of improvements (in addition to the new capability). I want to make sure that @davismj reviews this thoroughly and that you are aligned on whether to use the viewModel name for the property. I think Matt has proposed a different name for use in the vNext API and I'm wondering if we should try to align the names or if it doesn't matter too much (since router is probably going to be the biggest felt breaking change in vNext).

bigopon commented 5 years ago

@davismj I've rebased and updated dependency route recognizer. It's working good

tmueller commented 5 years ago

Came here from https://discourse.aurelia.io/t/discussion-bundler-friendly-aurelia/959/17. Any news on this?

bigopon commented 5 years ago

@tmueller This work has been merged. It's now waiting for some checks and reviews, and I'm working with @davismj here https://github.com/aurelia/templating-router/pull/84 to complete this feature.

bigopon commented 5 years ago

Closing this as it has been merged in another PR. Thanks to @tmueller for reminding

tmueller commented 5 years ago

Thanks @bigopon for the fast response :)