[Vuejs]-How to initiate refresh of Vuejs page elements w/ new data?

0👍

You lack host, because this.$http.get(‘/resources/’ + id) is u component resources, this not json…

0👍

It looks like you’re not making the REST call correctly. I think you’re getting routing and REST calls mixed up. What you show above is for routing not making calls to the server.

You’re not calling the server here:
this.$http.get('/resources/' + id)

and doing this is just for the routing:
this.$router.push('/resources/' + id)

Look at using axios for REST calls:
https://github.com/axios/axios

Leave a comment