<?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>HTML5のHistory APIでは、pushStateでスタックへ積んだ状態を、window.onpopstateにセットしたイベントハンドラで受け取ることができます。このイベントハンドラをangular.jsで扱いやすいようにng-popstateという属性を定義するという内容です。 app.directive(&quot;ngPopstate&quot;, function($parse, $timeout, $window){ return function($scope, $element, $attributes){ var fn = $parse($attributes[&quot;ngPopstate&quot;]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjou4.hateblo.jp%2Fentry%2F2014%2F04%2F02%2F224038&quot; title=&quot;angular.jsのdirectiveでng-popstateをつくる - 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-02 22:40:38</published>
  <title>angular.jsのdirectiveでng-popstateをつくる</title>
  <type>rich</type>
  <url>https://jou4.hateblo.jp/entry/2014/04/02/224038</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
