<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unageanu</author_name>
  <author_url>https://blog.hatena.ne.jp/unageanu/</author_url>
  <blog_title>うなの日記</blog_title>
  <blog_url>https://unageanu.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>DIコンテナ</anon>
  </categories>
  <description>JavaScriptで動くDIコンテナの解説その2。バインドメソッドは、登録済みコンポーネントの任意の関数をコンポーネントとして登録する機能です。 モデルのリスナーとしてUIコンポーネントの関数を登録。 →変更通知を受けてUIを更新。 通信エラーのコールバック関数としてUIコンポーネントの関数を登録。 →エラー発生時にダイアログを表示 といった使い方をイメージしています。UI層とそれ以外の層の関連づけをコンテナで行うことで、レイヤー間の結合を疎にできます。 使用方法 バインドメソッドはtoFunction()を使用して登録します。 引数で関数の所有者であるコンポーネント名と関数名を指定します。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20070815%2F1187168117&quot; title=&quot; バインドメソッド - うなの日記&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>2007-08-15 17:55:17</published>
  <title> バインドメソッド</title>
  <type>rich</type>
  <url>https://unageanu.hatenablog.com/entry/20070815/1187168117</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
