<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomotomo1129</author_name>
  <author_url>https://blog.hatena.ne.jp/tomotomo1129/</author_url>
  <blog_title>親バカエンジニアのナレッジ帳</blog_title>
  <blog_url>https://ti-tomo-knowledge.hatenablog.com/</blog_url>
  <categories>
    <anon>Vue.js</anon>
  </categories>
  <description>ある条件を満たした時にクラスを割り当てる方法 ある条件を満たした時にクラスを複数割り当てる方法 ある条件Aを満たした時にクラスAを割り当て、ある条件Bを満たした時にクラスBを割り当てるなど、複数のクラスを割り当てる方法 三項演算子で条件次第で別々のクラスを割り当てる方法 Vue.jsで動的(条件を満たす場合)にクラスを割り当てる方法として、v-bind:classがあります(v-bindは省略可能)。 動的に割り当てるパターンとしては色々考えられますよね。 単純にある条件を満たした時にクラスを割り当てるパターン、条件Aを満たした時にクラスAを割り当て、条件Bを満たした時にクラスBを追加で割り当…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fti-tomo-knowledge.hatenablog.com%2Fentry%2F2018%2F06%2F21%2F111721&quot; title=&quot;Vue.jsのv-bind:classで動的なクラス割り当て - 親バカエンジニアのナレッジ帳&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>https://images-fe.ssl-images-amazon.com/images/I/5191wb7GxtL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-06-21 11:17:21</published>
  <title>Vue.jsのv-bind:classで動的なクラス割り当て</title>
  <type>rich</type>
  <url>https://ti-tomo-knowledge.hatenablog.com/entry/2018/06/21/111721</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
