Article Directory
First, the difference between dynamic routing and nested routing
First look at the effect
the difference:
- From the form of view: there is one / in the path of the dynamic routing url, and two / in the path of the nested routing url
- Essentially: dynamic routing url corresponds to one component, nested routing url corresponds to two components
effect:
- Dynamic routing: realize the dynamic change of path value
- Nested routing: implement child routing under parent routing
Second, the code implementation process
Dynamic routing
When you change the value of the userId attribute in App.vue, the value displayed by the url will also be different
.
Nested routing
The 1234 in the picture is the process of code execution. If you go through the code execution order in your mind, you will see the
effect
3. Summary
This knowledge point has thought about the code execution order for a day. I have done it twice in ppt. Csdn summarized it and finally understood it, so I must summarize it and master the essence of programming