@daffodil/external-router extends @angular/router and allows you to render routes defined in external systems like Wordpress, Magento, Contentful, etc, as if you had defined the routes statically in your Angular Routes.
It's useful when generating user-friendly routes in external applications and resolving them by their user-friendly URI, such as /sweatshirts instead of /category/6 or category/sweatshirts.
To install @daffodil/external-router, use the following commands in your terminal.
Install with npm:
npm install @daffodil/external-router --save
Install with yarn:
yarn add @daffodil/external-router
See the usage guide for a step-by-step walkthrough of setting up external routing in your application.
Configure the external router behavior with custom options. See the configuration guide for available options.
We provide a driver interface along with a few pre-fabricated drivers for you to simply drop into your app and get started with external route resolution.
Learn how to test your external router configuration and route guards. See the testing guide for examples and best practices.