hello.
i am new here and i wish to know how i can dynamically load routes from an endpoint using aurelia 2.0.
i have searched but found only version 1 related articles. the version 1 apis differ from the version 2.
thank u.
hello.
i am new here and i wish to know how i can dynamically load routes from an endpoint using aurelia 2.0.
i have searched but found only version 1 related articles. the version 1 apis differ from the version 2.
thank u.
Hi friend, welcome to the community.
If you use the @aurelia/router-lite package, as documented in the docs: https://docs.aurelia.io/getting-to-know-aurelia/routing/aurelia-router-lite/configuring-routes the getRouteConfig
method can be async and you could use this to dynamically load routes from an endpoint. I haven’t tried it myself, but this should do what you want in theory.
Thank you for the response. That was kind of you. I will go through the documentation and try it out after which I will revert.
Thank you again.