useSocialTags
updateSocialTags
Merges the provided module options
with the given data, generates the meta tags and updates them on the page.
-
Arguments:
- data:
options
- data:
<script setup>
const { updateSocialTags } = useSocialTags();
updateSocialTags({ title: "New Title for meta" });
</script>
updateSocialTags
only works during setup
or Lifecycle Hooks.