<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rennnosukesann</author_name>
  <author_url>https://blog.hatena.ne.jp/rennnosukesann/</author_url>
  <blog_title>Ren's blog</blog_title>
  <blog_url>https://rennnosukesann.hatenablog.com/</blog_url>
  <categories>
    <anon>AngularJS</anon>
  </categories>
  <description>ng-class AngularJSではHTMLタグに付加するクラスを動的に変化させるng-classディレクティブが用意されています。 タグに割り当てるクラスを状態や条件で変更できるので、非常に便利です。 使い方 &lt;div ng-class=&quot; &lt;割り当てるクラス名1&gt; : &lt;条件1&gt; , &lt;割り当てるクラス名2&gt; : &lt;条件2&gt; , ... &quot;&gt;&lt;/div&gt; ng-classで割り当てたいクラスと条件は上記のように複数指定できます。 例えば、チェックボックスが有効かどうかを真偽値で返すisBoxChecked()がfalseのときはdisabledをつけたい場合は &lt;div ng-clas…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frennnosukesann.hatenablog.com%2Fentry%2F2018%2F03%2F20%2F235420&quot; title=&quot;【AngularJS】ng-classで動的にhtmlタグのclassを変更する - Ren&amp;#39;s 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>2018-03-20 23:54:20</published>
  <title>【AngularJS】ng-classで動的にhtmlタグのclassを変更する</title>
  <type>rich</type>
  <url>https://rennnosukesann.hatenablog.com/entry/2018/03/20/235420</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
