#router-outlet content is rendered after router outlet

3 messages · Page 1 of 1 (latest)

tepid hinge
#

Am i misunderstanding how router-outlet is supposed to work, and even worked in the past? I was expecting that the content of the current active route would be placed inside the router-outlet?

I created an example here on stackblitz.
Red = navbar
Blue = router-outlet
Green/Yellow = content of selected route

I would expect my content of the selected route to be placed inside the router-outlet?

https://stackblitz.com/edit/stackblitz-starters-8tw96a?file=src%2Fapp.component.ts

An angular-cli project based on @angular/animations, @angular/common, @angular/compiler, @angular/core, @angular/forms, @angular/platform-browser, @angular/platform-browser-dynamic, @angular/router, core-js, rxjs, tslib and zone.js

livid hound
#

OK, but your own experiment shows that your expectation was wrong. So, what could we add?

tepid hinge
#

I dont know