Like single-page applications written with Vue and Angular
The routing document states that the content following # will be ignored by the server, and the function of the content following # needs to be implemented on the client
I don’t understand routing clearly. Does it mean loading all pages or components from the server during initialization? Wouldn't it be heavy to load for the first time?
phpcn_u15822017-06-10 09:50:14
Hash routing, the server will indeed ignore the content after #, but this should have nothing to do with loading those pages and components. I have never written a single-page application using Vue and Angular, but I can directly implement routing-based code separation by using React-router with webpack
. If I use webpack2
, I can also dynamically import.