<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aipacommander</author_name>
  <author_url>https://blog.hatena.ne.jp/aipacommander/</author_url>
  <blog_title>ITの隊長のブログ</blog_title>
  <blog_url>https://www.aipacommander.com/</blog_url>
  <categories>
    <anon>Angular</anon>
    <anon>Angular2</anon>
  </categories>
  <description>Angularでは、Component外のDOMにアクセスする方法は用意されていないらしい。 なので、色々ググってみてやりかたをみているとhackっぽくて 'body'というセレクタを持つComponentを作る Angularのライブラリをhackしてアクセスできるようにする という感じ。うーん。どうしたもんか。 単純にdocumentから取れんのか。。。取れた！？ let body = document.getElementsByTagName('body'); body[0].classList.add('added-class-name'); body[0].classList.rem…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.aipacommander.com%2Fentry%2F2017%2F02%2F12%2F142337&quot; title=&quot;【Angular2.x】bodyタグにclassを追加・削除したりする - ITの隊長のブログ&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://cdn.user.blog.st-hatena.com/default_entry_og_image/98194825/1514241549987688</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-02-12 14:23:37</published>
  <title>【Angular2.x】bodyタグにclassを追加・削除したりする</title>
  <type>rich</type>
  <url>https://www.aipacommander.com/entry/2017/02/12/142337</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
