K
K
Kagtaviy2017-03-04 00:29:37
JavaScript
Kagtaviy, 2017-03-04 00:29:37

How to use routing from vue + golang?

Hello.
I want to use page routing from vuejs, there is a static element (header) and when switching to "/ support" for example, update the content and not the entire page.
I don’t quite understand how to organize this on the go side, I use gorilla toolkit, vuejs, gorilla / websocket ...
Correctly, I understand that routing takes place entirely on the vuejs side and when you switch to "/ support", you need to send a get request in the component, receive a response from go for example in JSON format and pass data to local components?
Please explain if my logic is correct and if not difficult, show examples.
Thanks in advance :3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kolo2012, 2017-03-05
@kolo2012

As far as I understand you have a SPA. If yes, then on the Go side you must have an API with which your application communicates. And in what format the API returns data already depends on your specific implementation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question