Skip to content

Support deep linking for ng serve #489

Description

@Brocco

Deep Linking Support Request

Currently when running ng serve and developing within a route, the current route is not reloaded, just the root of the application. As a developer using the CLI to ng serve while doing development I expect the current route to reload when I make a change to my code. The actual result is that the application root is loaded and no additional routes are reloaded.

Steps to Reproduce

ng new foo
ng generate route test-route
#open foo.ts, find the test-route configuration and add the property: `useAsDefault: true`
ng serve

In the browser navigate to http://localhost:4200/ (which will redirect you to http://localhost:4200/test-route because of the useDefaultRoute) and you will see:
image

Refresh the browser (or make a change to your code, which will reload the browser) and you will see this:
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenteffort2: medium (days)type: bug/fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions