GithubHelp home page GithubHelp logo

auxiliary-router-outlet-test's Introduction

This repo has two apps

client which is working as expected can navigate to /manager/edit click Go to Secondary and then reload. Page loads correctly and routes are loaded right

client-not-working is not working, the same routes are setup just nested one level deeper inside a container component (manager-container). This one you can load /manager/edit and nav to secondary but on reload it throws an error about the outlet already being activated.

Error: Cannot activate an already activated outlet. All of the SO posts and Angular issues (all of which have been solved) I was able to find talk about this being a lazy loading issue or caused by some other problem or error in the console

I think this may be a bug in the router but am not sure.

I would assume that secondary outlets can be defined at any level in the routing tree as long as there is a router-outlet with the outlet name.

Named outlets seem very finicky because in another project I was able to essentially do this (with loadChildren unwrapped)

[
{path: '', children: [
  {
    path: '',
    children: [
      ...sharedSidebarRoutes, <-- an array of routes with "outlet": "sidebar"
      {
        path: 'edit',
        component: EditComponent
      }
    ]
  }
]}
]

which "mostly" works but if you try and nest another route into a sub route say /edit/page then /edit/page(sidebar:route1) does not work but /edit(sidebar:route1) does

auxiliary-router-outlet-test's People

Contributors

yharaskrik avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.