Angular2.x+

clipboard.png
looked at the route on the official website and felt very confused. I asked for advice.

Feb.11,2022

method 1:
you route the jump page. If you need to hide the route of the bottom footer, change it to a dynamic route, pass in the hidden footer parameter, and then get the routing parameter in the imported footer page or inside the footer component. If you need to hide, hide or log out, or configure the route to set the parameter
header. Similarly, you need to change the header text of the routing page, pass parameters through the route or configure the parameters in the route

.

method 2:
do a write listening route inside the parent component or component of header and footer, and customize the rules. When the route changes, it changes according to the rules

method 3:
change through the form of service server

still don't understand
can refer to Angular 2 + to listen for route changes and dynamically set the page title principle is basically the same, or you can search Angular to listen for route changes, and there are quite a lot of answers, when the ideas are basically the same
https://codeshelper.com/a/11.

.
Menu