<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kosukerino</author_name>
  <author_url>https://blog.hatena.ne.jp/kosukerino/</author_url>
  <blog_title>higmonta blog</blog_title>
  <blog_url>https://higmonta.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Vueで親コンポーネントへdataの値を渡す方法について備忘録としてこちらにまとめます。 Vueのインスタンスをグローバル登録した際にdataプロパティの値を親コンポーネントに渡す方法は、以下の2つになります。 1つ目 &lt;div id=&quot;app&quot;&gt; &lt;my-component v-bind:list=&quot;list&quot;&gt;&lt;/my-component&gt; &lt;/div&gt; Vue.component('my-component', { template: ` &lt;ul&gt; &lt;comp-child v-for=&quot;item in list&quot; v-bind:key=&quot;item.id&quot; v-bind:name=&quot;ite…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigmonta.hatenablog.com%2Fentry%2F2024%2F07%2F03%2F013706&quot; title=&quot;Vueで親コンポーネントへdataの値を渡す方法 - higmonta blog&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>2024-07-03 01:37:06</published>
  <title>Vueで親コンポーネントへdataの値を渡す方法</title>
  <type>rich</type>
  <url>https://higmonta.hatenablog.com/entry/2024/07/03/013706</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
