-
-
Notifications
You must be signed in to change notification settings - Fork 74
docs(external-router): clarify README and getting started guides #4034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
docs(external-router): clarify README and getting started guides #4034
Conversation
| > - Always include a fallback route at the end | ||
| > These components are also just examples, so you can replace them with whatever components you want. | ||
| ### Step 5: Use in Templates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### Step 5: Use in Templates | |
| ### Use in templates |
| > | ||
| > - Static routes are evaluated first | ||
| > - External routes use `path: '**'` with `canMatch` guards | ||
| > - Order matters - more specific types should come first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| > - Order matters - more specific types should come first | |
| > - Order matters—more specific types should come first |
| Add `provideExternalRouter` to the `providers` of your `appConfig` or `AppModule`. | ||
| This guide walks you through setting up `@daffodil/external-router` to enable dynamic route resolution from external systems in your Angular application. | ||
|
|
||
| ## Quick Start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Quick Start | |
| ## Quick start |
| npm install @daffodil/external-router --save | ||
| ``` | ||
|
|
||
| ### Basic Setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### Basic Setup | |
| ### Basic setup |
| ``` | ||
|
|
||
| ## Configurations | ||
| ### Configure a Driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### Configure a Driver | |
| ### Configure a driver |
|
|
||
| ```bash | ||
| npm install @daffodil/external-router --save | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to add installation instruction for yarn?
yarn add @daffodil/external-router| <li><a routerLink="/another-page">Other Type (another)</a></li> | ||
| </ul> | ||
| <router-outlet></router-outlet> | ||
| ## Advanced Configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Advanced Configuration | |
| ## Advanced configuration |
|
|
||
| See the [configuration guide](/libs/external-router/guides/configuration.md) for all available options. | ||
|
|
||
| ### Production Setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be nested within ## Advanced configuration?
| ``` | ||
|
|
||
| 4. Serve your app. You can now navigate to `"/test-page"`, `"/other-page"`, and `"/another-page"` as if it was defined in your Angular routes. | ||
| ## Next Steps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Next Steps | |
| ## Next steps |
| yarn add @daffodil/external-router | ||
| ``` | ||
|
|
||
| ## Getting Started |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Getting Started | |
| ## Getting started |
PR Checklist
PR Type
Current behavior
I tried to set up the external router driver by following the docs and I was a little confused, so I had to look at the code to remember how it worked.
Touches: #2683
New behavior
I rewrote the guide to be a little more clear on how to use the package.
Breaking change?
Additional context