Giter Site home page Giter Site logo

[WIP] Router Use Cases [RFC] about aurelia HOT 12 CLOSED

aurelia avatar aurelia commented on May 14, 2024
[WIP] Router Use Cases [RFC]

from aurelia.

Comments (12)

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024 3

Use case
generate route to a sibling router
aurelia/router#89

from aurelia.

krisdages avatar krisdages commented on May 14, 2024 2

Re aurelia/router#379
Commenting here because that issue was closed, but it would be a wishlist item for a backport...

Similar to how globalResources lets you pass the constructor for a resource now instead of the module path,

It would be great if you could pass an async function to the route config that resolves to the viewmodel constructor (ie container key?) to use for the route.

We are trying to avoid things breaking due to moved or renamed modules, and this is one of the last areas in our app where a string is still required.

Being able to pass a function that returns (await import("module-path")).ViewModelX would allow the build to catch errors (or the IDE to do the refactoring).

from aurelia.

davismj avatar davismj commented on May 14, 2024 2

from aurelia.

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024

Use case:
A dynamically loaded component has configureRouter and router-view

from aurelia.

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024

some developers would like to generate events on child routers
aurelia/router#293

from aurelia.

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024

a case to look and test for with child router and redirect params
aurelia/router#66

from aurelia.

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024

Cancelling a navigation instruction with a redirect raises inconsistent navigation events
aurelia/router#177

from aurelia.

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024

Links containing hash anchor tags in URL not supported
aurelia/router#225

from aurelia.

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024

Add helpers for dynamically matching paths
aurelia/router#249

from aurelia.

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024

Load route viewModel module from external location or via alternative resolve strategy
aurelia/router#379

from aurelia.

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024

excessive activation of a parent router when navigated back from inner router
aurelia/router#155

from aurelia.

Alexander-Taran avatar Alexander-Taran commented on May 14, 2024

warn about duplicate names
aurelia/router#366

from aurelia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.