头图

The page is as follows:
http://localhost:4200/powertools-spa/en/USD/jerryproduct/3881018/Angle%20Grinder%20RT-AG%20115

The template id is: ProductDetailsPageTemplate

In the product detail page module, we call RouterModule.forChild to specify that the route is matched and the loaded Component is PageLayoutComponent:

I added a div statement in the html file of this Component as a printout:

Run-time effect:

This ProductDetailsPageTemplate appears under the router-outlet instruction, and is obviously loaded via routing:

In the layout config configuration file, you can delete a part of its slots for a test:

For example, only the Summary slot is left:

The effect is as follows:

More original articles by Jerry, all in: "Wang Zixi":


注销
1k 声望1.6k 粉丝

invalid