<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kitak</author_name>
  <author_url>https://blog.hatena.ne.jp/kitak/</author_url>
  <blog_title>kitak blog</blog_title>
  <blog_url>https://kitak.hatenablog.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>Vue</anon>
  </categories>
  <description>1回ハマったら体が覚えて、次回から気を付けるようになるのだけど、記事にしておく。 例えば、以下のように配列をスタックとして使い、トップを算出プロパティで定義したとき。1秒後にトップの id が 100 になると思いきやそうはならない。Vue は push, pop, splice といった操作のメソッドをラップして、配列の変更を検知しているので、配列の要素へ代入しても配列の変更とはみなされない。 new Vue({ data: { items: [] }, mounted() { this.items.push({id: 1}); this.items.push({id: 2}); this.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkitak.hatenablog.jp%2Fentry%2F2017%2F09%2F03%2F221459&quot; title=&quot;Vue で配列を使った算出プロパティの値が変わらないとき - kitak 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>2017-09-03 22:14:59</published>
  <title>Vue で配列を使った算出プロパティの値が変わらないとき</title>
  <type>rich</type>
  <url>https://kitak.hatenablog.jp/entry/2017/09/03/221459</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
