Skip to content

Conversation

@damienwebdev
Copy link
Member

PR Checklist

  • Commit message follows our contributing guidelines
  • Tests added/updated (for bug fixes/features)
  • Documentation added/updated (for bug fixes/features)

PR Type

  • Bug fix
  • Feature
  • Style update
  • Refactor
  • Test
  • Build
  • CI
  • Docs
  • Performance
  • Other (please describe)

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?

  • Yes
  • No

Additional context

@damienwebdev damienwebdev requested a review from a team as a code owner September 30, 2025 16:03
> - 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> - Order matters - more specific types should come first
> - Order mattersmore 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Quick Start
## Quick start

npm install @daffodil/external-router --save
```

### Basic Setup
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Basic Setup
### Basic setup

```

## Configurations
### Configure a Driver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Configure a Driver
### Configure a driver


```bash
npm install @daffodil/external-router --save
```
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Advanced Configuration
## Advanced configuration


See the [configuration guide](/libs/external-router/guides/configuration.md) for all available options.

### Production Setup
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Next Steps
## Next steps

yarn add @daffodil/external-router
```

## Getting Started
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Getting Started
## Getting started

@xelaint xelaint added status: needs response This PR is waiting for a response from the author package: external-router @daffodil/external-router labels Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: external-router @daffodil/external-router status: needs response This PR is waiting for a response from the author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants