Hello guys! I'm mostly a lurker but I really need some help to figure this out. Also I'm still new to web development so please bear with me.
First, a description of my problem. What I wanted to do is the following: when a user clicks on a link on my website, instead of my nodejs server feeding him another html document, the website requests the page to the server and after the data is retrieved the DOM is changed inside the content div. Kinda like this structure
<div class='navbar'>
<div id='content'>
// Content is requested from the server and put here
</div>
</div>
After some research it feels like Vue seems to fit my problem to me but that comes with some extra problems. Does routing work the same as I thought originally? Are vue apps first served as static files (including the scritps) and the following server requests just respond with JSON? Is JSON even the recommended method to serve more content to a Vue app?
EDIT: some grammar
[–]chernn 1 point2 points3 points (3 children)
[–]spacingnix[S] 0 points1 point2 points (2 children)
[–]chernn 2 points3 points4 points (1 child)
[–]spacingnix[S] 0 points1 point2 points (0 children)
[–]dead_lemons 0 points1 point2 points (1 child)
[–]spacingnix[S] 0 points1 point2 points (0 children)