This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14011|Reply: 0

[Angular] Angular 6 router-outlet usage

[Copy link]
Posted on 10/23/2018 4:09:06 PM | | | |
Note: router-outlets are route sockets in your application that can use one or more router-outlets in a page

1. Use only one router-outlet

Parent Component:


Sub-Components:


Page display:



2. Use two router-outlets for a single page (multiple and two principles are the same)

Parent component html:

Parent component module:

Subcomponent left:


Subcomponent right:


Page display effect:







Previous:Architect's "4th Anniversary" celebration, double recharge event
Next:[Reprint] Feixun Mall VC snap-up software
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com