<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wannabe-jellyfish</author_name>
  <author_url>https://blog.hatena.ne.jp/wannabe-jellyfish/</author_url>
  <blog_title>くらげになりたい。</blog_title>
  <blog_url>https://memory-lovers.blog/</blog_url>
  <categories>
    <anon>Nuxt.js</anon>
    <anon>Nuxt3</anon>
    <anon>Vue3</anon>
  </categories>
  <description>Nuxt3で$refsを使うと思ったら、うまくいかなかった。。 Composition APIで$refsは使えないらしい。。 Composition APIでのテンプレート参照したいときは、 refと同じ変数をRefを使って用意すればよいらしい。 テンプレート参照 | Vue.js &lt;script setup&gt; const myCoolDiv = ref(null) const clickMe = () =&gt; console.log(myCoolDiv) &lt;/script&gt; &lt;template&gt; &lt;button @click=&quot;clickMe&quot;&gt;show me the ref&lt;/button…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemory-lovers.blog%2Fentry%2F2022%2F06%2F07%2F143000&quot; title=&quot;Nuxt3/Vue3: Composition APIでのテンプレート参照(`$refs`) - くらげになりたい。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-07 14:30:00</published>
  <title>Nuxt3/Vue3: Composition APIでのテンプレート参照(`$refs`)</title>
  <type>rich</type>
  <url>https://memory-lovers.blog/entry/2022/06/07/143000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
