Questions tagged [router-outlet]

Use it for questions about the angular 2 or 4 router-outlet element.

The router-outlet is part of the routing-system of angular 2 and above. Depending on the navigated route, a specific component can be displayd in a router-outlet.

Multiple <router-outlet/>-tags are possible in one component if you name at least all but 1 of them. Nested router-outlets working together with the child-property of routing-objects in the route-config of a NgModule

See also: https://angular.io/api/router/RouterOutlet

308 questions
-1
votes
2 answers

How to emit router event

I have 2 modules, one is sidenav, where I can select the menu and want to show component in content module where have router-outlet. I want to know what is the best way to do that? Have some router event where I can just subscribe in content module?…
Chiien
  • 341
  • 1
  • 3
  • 14
-1
votes
1 answer

Angular 2 - Router-Outlet is not a known element

So, I've already made a lot of search on this subject but I can't find the bug. I got the error is not a known element when I'm trying to implement a router. Here is my app-routing.module.ts : import { NgModule } from…
Alex Caron
  • 350
  • 3
  • 19
-1
votes
1 answer

Angular 4 router child path not found (outlet)

I have some issues with Angular 4 router and components. What i'm trying to do. I have a view (SuperUser) which contains 2 oulets (side menu and content). In router i have Super user with 2 children (sidemenu and content), with it's own router but…
-1
votes
1 answer

Angular 5 outlet router-outlet programmatically

I'm in this situation At this address localhost:4200/pathlvl1/pathlvl2 I've a component which loads an HTML page with a router-outlet inside TEST
teoooo78
  • 19
  • 5
-2
votes
1 answer

SOLVED! Angular 9 routerlink and router-outlet problems

I have a problem with a exercise that i'm current doing and i can't finish because of the routes, I have a child view and can't use routerLink is not clickable! I have a view for making the login that redirect to a home component that has child…
Mr_mufy
  • 11
  • 1
  • 4
-2
votes
1 answer

angular router-outlet doen't render anything

I am a beginner in angular.I am following a lecture and doing hands-on.I write the following code following the instructor.But this doen't render anything.Please help app.module.ts : @NgModule({ declarations: [ AppComponent, …
Mohammed Ajmal
  • 570
  • 1
  • 7
  • 20
-3
votes
1 answer

router-outlet is not a known element in multi module app

Following is my code error is router-element is not a known element. Attached are screenshots of code: App routing Module App module App compoent.ts App compoent.html
-4
votes
2 answers

Angular 6 | RouterLink

is there any way to go to another page's section which is defined by id without reload
1 2 3
20
21