0👍
If you want to dynamically set meta tags like og:title
or og:image
you may want to consider doing it from backend code so that the dynamic tags are in place when the html is sent to the browser. The reason for this is that some crawlers do not run javascript code. For any crawler that does not run javascript code, setting such meta tags via a clientside library like Vue.js will not affect what the crawler sees since it will only see the html as it existed when originally streamed from the server.
- [Vuejs]-Update a data property is not working on button click in vuejs
- [Vuejs]-Vuejs disable button depending array length
Source:stackexchange.com