Comments (3)
In the description they state @vueuse/head is a Vue composition API
, which means that the plugin supports/uses only the Composition API, a.k.a. setup()
or <script setup>
.
You can still use plugins for the Composition API inside your classic Options API, like described here in Composition API: setup() - Basic usage, with the limitation that the Options API can use the return value of the Composition API (setup()
), but not the other way around.
Alternatively you can try to use the Head component, which probably can work with the values of the Options API.
from head.
v1 will support the Options API in Vue 2 and Vue 3 out of the box
You can try it out now https://github.com/vueuse/head/tree/v1
Will close once this it's released as stable.
from head.
Options API doc is here: https://unhead.harlanzw.com/integrations/vue/options-api
Just replace @unhead/vue with @vueuse/head
from head.
Related Issues (20)
- default meta description is not getting replaced HOT 1
- How to get type of script from useHead()? HOT 5
- Options API Dynamic Title HOT 3
- Issues when transpiling typeScript into javaScript HOT 6
- useHead script `children` vulnerable to XSS HOT 4
- the requested module does not provide an export named 'default' HOT 1
- website link HOT 1
- useHead does not working with vue router HOT 3
- change icon not work HOT 3
- Dependency not met HOT 2
- Noscript still seems to not be working HOT 1
- How to add "custom-element" tag to script HOT 3
- Deduping from initial head not working HOT 4
- Optional chaining are not compiled to ES5 HOT 2
- @vueuse/head not working properly with vite-plugin-ssr in SSR mode HOT 6
- Why do tags stay despite route change? HOT 9
- Issue with useServerHead or useHead with Vue 2.7 + Vite + Vue Router HOT 3
- Vue 2.5 support HOT 1
- The installation guide link is pointing to a broken link HOT 2
- Google is lowering my indexed pages every day
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from head.