<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jou4</author_name>
  <author_url>https://blog.hatena.ne.jp/jou4/</author_url>
  <blog_title>jou4のブログ</blog_title>
  <blog_url>https://jou4.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>directiveを使ってカスタム要素をつくるというのをやってみました。 http://docs.angularjs.org/guide/directive restrict: &quot;E&quot;, restrictはdirectiveの種類で、'E'は要素を指します。他にも'A'や'C'があり、それぞれ属性とクラスを指します。デフォルトは'A'のようです。'AEC'と指定すれば全てにマッチするようです。 var template = '' + '&lt;div class=&quot;user&quot;&gt;' + ' &lt;span class=&quot;user-id&quot;&gt;{{user.id}}&lt;/span&gt;' + ... user要素を置…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjou4.hateblo.jp%2Fentry%2F2014%2F04%2F04%2F172457&quot; title=&quot;angular.jsのdirectiveでカスタム要素をつくる - jou4のブログ&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>2014-04-04 17:24:57</published>
  <title>angular.jsのdirectiveでカスタム要素をつくる</title>
  <type>rich</type>
  <url>https://jou4.hateblo.jp/entry/2014/04/04/172457</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
